summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 04:23:57 +0000
committercaitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 04:23:57 +0000
commitf2857ecf6c8da488feeca9b05cf2c046ea43e02f (patch)
tree935fe8e20e8bf8175dd24f1faea7fa45545bbcda
parent8b6098e412722d5b34d6a085f8fc0fd5cb78c6f5 (diff)
downloadchromium_src-f2857ecf6c8da488feeca9b05cf2c046ea43e02f.zip
chromium_src-f2857ecf6c8da488feeca9b05cf2c046ea43e02f.tar.gz
chromium_src-f2857ecf6c8da488feeca9b05cf2c046ea43e02f.tar.bz2
Disable Chrome2Mobile in incognito mode
BUG=146829 Review URL: https://chromiumcodereview.appspot.com/10919132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155311 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/toolbar/action_box_menu_model.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/toolbar/action_box_menu_model.cc b/chrome/browser/ui/toolbar/action_box_menu_model.cc
index fd720af..31cafee 100644
--- a/chrome/browser/ui/toolbar/action_box_menu_model.cc
+++ b/chrome/browser/ui/toolbar/action_box_menu_model.cc
@@ -39,7 +39,8 @@ ActionBoxMenuModel::ActionBoxMenuModel(Browser* browser)
: ALLOW_THIS_IN_INITIALIZER_LIST(ui::SimpleMenuModel(this)),
browser_(browser) {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- if (ChromeToMobileServiceFactory::GetForProfile(browser_->profile())->
+ if (!browser_->profile()->IsOffTheRecord() &&
+ ChromeToMobileServiceFactory::GetForProfile(browser_->profile())->
HasMobiles()) {
AddItemWithStringId(IDC_CHROME_TO_MOBILE_PAGE,
IDS_CHROME_TO_MOBILE_BUBBLE_TOOLTIP);