Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4423)

Unified Diff: chrome/browser/browser_process_impl.h

Issue 174162: Don't show "Inspect Element" in the context menu if we can't inspect. (Closed)
Patch Set: ... Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.h
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index ac0edded444b8bc0ad90f97fc696bb8349630bc2..384083694592e6bc5cee4664b4482f07d7c4d7df 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -189,6 +189,12 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
return shutdown_event_.get();
}
+ virtual void CheckForInspectorFiles();
+
+ virtual bool have_inspector_files() const {
+ return have_inspector_files_;
+ }
+
private:
void CreateResourceDispatcherHost();
void CreatePrefService();
@@ -276,6 +282,12 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
// An event that notifies when we are shutting-down.
scoped_ptr<base::WaitableEvent> shutdown_event_;
+ // Runs on the file thread and stats the inspector's directory, filling in
+ // have_inspector_files_ with the result.
+ void DoInspectorFilesCheck();
+ // Our best estimate about the existence of the inspector directory.
+ bool have_inspector_files_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
};
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698