summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 00:34:09 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 00:34:09 +0000
commit6641bf667244ed108b2d300766896f6fa84a6f4e (patch)
tree2e82c7be2c10139bddf35f8e72b47b49bcbb3ce0 /chrome/test
parent92ac0b815ab28656139ecbbe3af11edaecfce61a (diff)
downloadchromium_src-6641bf667244ed108b2d300766896f6fa84a6f4e.zip
chromium_src-6641bf667244ed108b2d300766896f6fa84a6f4e.tar.gz
chromium_src-6641bf667244ed108b2d300766896f6fa84a6f4e.tar.bz2
Don't show "Inspect Element" in the context menu if we can't inspect.
Ubuntu want to ship with the inspector files in a separate package and having menu items which are broken isn't nice. http://codereview.chromium.org/174162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/testing_browser_process.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/test/testing_browser_process.h b/chrome/test/testing_browser_process.h
index 2391a53..b4bc3fc 100644
--- a/chrome/test/testing_browser_process.h
+++ b/chrome/test/testing_browser_process.h
@@ -140,6 +140,9 @@ class TestingBrowserProcess : public BrowserProcess {
return shutdown_event_.get();
}
+ virtual void CheckForInspectorFiles() {}
+ virtual bool have_inspector_files() const { return true; }
+
private:
NotificationService notification_service_;
scoped_ptr<base::WaitableEvent> shutdown_event_;