summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/browser_process_impl.cc3
-rw-r--r--chrome/browser/browser_process_impl.h4
2 files changed, 6 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));
}
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index ea9efb4..13ffeb0 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -200,6 +200,10 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
return have_inspector_files_;
}
+ void set_have_inspector_files(bool have_inspector_files) {
+ have_inspector_files_ = have_inspector_files;
+ }
+
#if defined(IPC_MESSAGE_LOG_ENABLED)
virtual void SetIPCLoggingEnabled(bool enable);
#endif