diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 23:17:43 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 23:17:43 +0000 |
commit | 4ee0bc31c1ad8203eb77136783132387bbc8abb0 (patch) | |
tree | 0c8471bbcb81ecc4d6f5c94bb11efcf924c45457 /chrome/browser/wrench_menu_model.cc | |
parent | 9c17999887073e5d0c58bd9e27ce56fd378a0e01 (diff) | |
download | chromium_src-4ee0bc31c1ad8203eb77136783132387bbc8abb0.zip chromium_src-4ee0bc31c1ad8203eb77136783132387bbc8abb0.tar.gz chromium_src-4ee0bc31c1ad8203eb77136783132387bbc8abb0.tar.bz2 |
Add remoting to wrench menu.
This change adds remoting item to wrench menu.
The change is under flag enable-remoting, so end users will not see it.
The CL is cleaned up. It was compiling and working. I added the check for kEnableRemoting and resynched and it is no longer compiling.
Submitted for: pranavk@chromium.org
Reviewed: http://codereview.chromium.org/3075024/show
BUG=50242
TEST=NONE
Review URL: http://codereview.chromium.org/3080038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/wrench_menu_model.cc')
-rw-r--r-- | chrome/browser/wrench_menu_model.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/wrench_menu_model.cc b/chrome/browser/wrench_menu_model.cc index 367b700..d4b576f 100644 --- a/chrome/browser/wrench_menu_model.cc +++ b/chrome/browser/wrench_menu_model.cc @@ -10,6 +10,7 @@ #include "app/l10n_util.h" #include "app/menus/button_menu_item_model.h" #include "app/resource_bundle.h" +#include "base/command_line.h" #include "base/string_number_conversions.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/browser/browser.h" @@ -22,6 +23,7 @@ #include "chrome/browser/sync/sync_ui_util.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/upgrade_detector.h" +#include "chrome/common/chrome_switches.h" #include "chrome/common/notification_service.h" #include "chrome/common/notification_source.h" #include "chrome/common/notification_type.h" @@ -298,6 +300,12 @@ void WrenchMenuModel::Build() { tools_menu_model_.get()); AddSeparator(); +#if defined(ENABLE_REMOTING) + if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableRemoting)) { + AddItem(IDC_REMOTING_SETUP, + l10n_util::GetStringUTF16(IDS_REMOTING_SETUP_LABEL)); + } +#endif AddItemWithStringId(IDC_SHOW_BOOKMARK_MANAGER, IDS_BOOKMARK_MANAGER); AddItemWithStringId(IDC_SHOW_HISTORY, IDS_SHOW_HISTORY); AddItemWithStringId(IDC_SHOW_DOWNLOADS, IDS_SHOW_DOWNLOADS); |