diff options
author | avayvod@chromium.org <avayvod@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 09:50:06 +0000 |
---|---|---|
committer | avayvod@chromium.org <avayvod@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 09:50:06 +0000 |
commit | 26994bc9cc9484459d9344cbb27e3bec5199614b (patch) | |
tree | e39a7096a1b42de6a0c49541a333e1bda12f6c5e /chrome/browser/protector | |
parent | 3173604915e6a3b7f27f9b65f23e0b1738f5ec49 (diff) | |
download | chromium_src-26994bc9cc9484459d9344cbb27e3bec5199614b.zip chromium_src-26994bc9cc9484459d9344cbb27e3bec5199614b.tar.gz chromium_src-26994bc9cc9484459d9344cbb27e3bec5199614b.tar.bz2 |
Send notifications to off-the-record profile about error bubble being added/removed.
R=sail@chromium.org
BUG=106466
TEST=Modify Web Data file to trigger Protector bubble, launch Chrome, open Incognito window, wait for 10 minutes or dismiss the bubble with any button, verify that wrench menu button doesn't have Protector badge anymore.
Review URL: http://codereview.chromium.org/8844003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/protector')
-rw-r--r-- | chrome/browser/protector/settings_change_global_error.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/protector/settings_change_global_error.cc b/chrome/browser/protector/settings_change_global_error.cc index fe1258c..5b57584 100644 --- a/chrome/browser/protector/settings_change_global_error.cc +++ b/chrome/browser/protector/settings_change_global_error.cc @@ -155,6 +155,10 @@ void SettingsChangeGlobalError::Show() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DCHECK(profile_); browser_ = BrowserList::GetLastActiveWithProfile(profile_); + if (!browser_ && profile_->HasOffTheRecordProfile()) { + browser_ = BrowserList::GetLastActiveWithProfile( + profile_->GetOffTheRecordProfile()); + } if (browser_) ShowBubbleView(browser_); } |