diff options
author | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 15:56:33 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 15:56:33 +0000 |
commit | 680383acda7ddf2a5a1b9f910e77054ce359b748 (patch) | |
tree | 3c5b52feceed9ec40030b90cb8ec422909ca9c81 /chrome/browser/browser_process_impl.cc | |
parent | 5156a125897f30d94a648ccf1fc1d6b48d1b488d (diff) | |
download | chromium_src-680383acda7ddf2a5a1b9f910e77054ce359b748.zip chromium_src-680383acda7ddf2a5a1b9f910e77054ce359b748.tar.gz chromium_src-680383acda7ddf2a5a1b9f910e77054ce359b748.tar.bz2 |
Set have_inspector_files_ in the UI thread as it is only read from that thread.
BUG=24419
TEST=TSAN
Review URL: http://codereview.chromium.org/391017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31665 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r-- | chrome/browser/browser_process_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc index 05d4299..f3bd06b 100644 --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc @@ -502,5 +502,6 @@ void BrowserProcessImpl::DoInspectorFilesCheck() { result = file_util::PathExists(inspector_dir); } - have_inspector_files_ = result; + ChromeThread::PostTask(ChromeThread::UI, FROM_HERE, NewRunnableMethod( + this, &BrowserProcessImpl::set_have_inspector_files, result)); } |