diff options
author | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-25 11:22:46 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-25 11:22:46 +0000 |
commit | 8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e (patch) | |
tree | 344faabdd8f1fe715c6d919de4a1d53bde344dbb /chrome/browser/sessions | |
parent | 09c0077246c9be4122ca1fcbf892865a61ec12a8 (diff) | |
download | chromium_src-8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e.zip chromium_src-8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e.tar.gz chromium_src-8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e.tar.bz2 |
Forbid reloading the Inspector window.
This CL disables reloading from the system menu, tab popup menu, and page context menu.
BUG=27254,6902
TEST=none
Review URL: http://codereview.chromium.org/391036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions')
-rw-r--r-- | chrome/browser/sessions/session_service.cc | 5 | ||||
-rw-r--r-- | chrome/browser/sessions/session_service.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/sessions/session_service.cc b/chrome/browser/sessions/session_service.cc index a4247c0..b52ee01 100644 --- a/chrome/browser/sessions/session_service.cc +++ b/chrome/browser/sessions/session_service.cc @@ -1179,6 +1179,8 @@ SessionService::WindowType SessionService::WindowTypeForBrowserType( return TYPE_APP; case Browser::TYPE_APP_POPUP: return TYPE_APP_POPUP; + case Browser::TYPE_DEVTOOLS: + return TYPE_DEVTOOLS; case Browser::TYPE_NORMAL: default: return TYPE_NORMAL; @@ -1194,9 +1196,10 @@ Browser::Type SessionService::BrowserTypeForWindowType( return Browser::TYPE_APP; case TYPE_APP_POPUP: return Browser::TYPE_APP_POPUP; + case TYPE_DEVTOOLS: + return Browser::TYPE_DEVTOOLS; case TYPE_NORMAL: default: return Browser::TYPE_NORMAL; } } - diff --git a/chrome/browser/sessions/session_service.h b/chrome/browser/sessions/session_service.h index a687125..fbeafd4 100644 --- a/chrome/browser/sessions/session_service.h +++ b/chrome/browser/sessions/session_service.h @@ -162,7 +162,8 @@ class SessionService : public BaseSessionService, TYPE_NORMAL = 0, TYPE_POPUP = 1, TYPE_APP = 2, - TYPE_APP_POPUP = TYPE_APP + TYPE_POPUP + TYPE_APP_POPUP = TYPE_APP + TYPE_POPUP, + TYPE_DEVTOOLS = TYPE_APP + 4 }; void Init(); |