Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: chrome/browser/protector/settings_change_global_error.cc

Issue 8844003: Send notifications to off-the-record profile about error bubble being added/removed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/global_error_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/settings_change_global_error.cc
diff --git a/chrome/browser/protector/settings_change_global_error.cc b/chrome/browser/protector/settings_change_global_error.cc
index fe1258cbd1b8ad95896acec6ff88454de951eeec..5b575843148f89dd915f553bd7a2f87681ae09f8 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_);
}
« no previous file with comments | « no previous file | chrome/browser/ui/global_error_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698