Fix 2 threading-related bugs in pyauto's remote inspector module.
Fix 2 threading-related bugs in pyauto's remote inspector module.

The first problem was a small typo where the wrong variable was being used (a boolean
value was being used where a threading.Condition object should have been used).

The second problem was in the API functions StartTimelineEventMonitoring and
StopTimelineEventMonitoring.  Previously, these two functions would send a
request to tell the remote inspector to start/stop timeline mode, but they did
not wait until the requests were serviced before returning.  This sometimes led
to subtle multithreading problems where the remote inspector module would hang.
The fix is to ensure these two API functions wait until their requests are
serviced before returning.

BUG=None
TEST=Ran a Chrome Endure test for 5 seconds with --repeat=100.  Previously, we'd see
a hang within the first 10 runs or so.  Now, all 100 runs pass.
NOTRY=true


Review URL: https://chromiumcodereview.appspot.com/10795055

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@147859 0039d316-1c4b-4281-b951-d872f2087c98

hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,mogoweb/chromium-crosswalk,markYoungH/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,patrickm/chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,ltilve/chromium,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,Fireblend/chromium-crosswalk,ltilve/chromium,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,zcbenz/cefode-chromium,zcbenz/cefode-chromium,dushu1203/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,dednal/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,axinging/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src,dushu1203/chromium.src,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,dednal/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,jaruba/chromium.src,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,littlstar/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,Chilledheart/chromium,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,hgl888/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,anirudhSK/chromium,Jonekee/chromium.src,hujiajie/pa-chromium,anirudhSK/chromium,ltilve/chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,fujunwei/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk,hujiajie/pa-chromium,markYoungH/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,Just-D/chromium-1,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,littlstar/chromium.src,nacl-webkit/chrome_deps,Chilledheart/chromium,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,M4sse/chromium.src,littlstar/chromium.src,Fireblend/chromium-crosswalk,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,Jonekee/chromium.src,hgl888/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,anirudhSK/chromium,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,jaruba/chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,Chilledheart/chromium,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,hujiajie/pa-chromium,zcbenz/cefode-chromium,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,Jonekee/chromium.src,ltilve/chromium,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,anirudhSK/chromium,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,M4sse/chromium.src,timopulkkinen/BubbleFish,dushu1203/chromium.src,zcbenz/cefode-chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,dednal/chromium.src,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,axinging/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,zcbenz/cefode-chromium,ondra-novak/chromium.src,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,dednal/chromium.src,hujiajie/pa-chromium,littlstar/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,axinging/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,jaruba/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,ltilve/chromium,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,chuan9/chromium-crosswalk,markYoungH/chromium.src,Chilledheart/chromium,hgl888/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,M4sse/chromium.src,dednal/chromium.src,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,Chilledheart/chromium,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,Jonekee/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,Just-D/chromium-1,littlstar/chromium.src,bright-sparks/chromium-spacewalk,dednal/chromium.src,M4sse/chromium.src,fujunwei/chromium-crosswalk,ltilve/chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,zcbenz/cefode-chromium