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

Unified Diff: chrome/browser/ui/extensions/extension_action_view_controller.cc

Issue 898603002: [Extensions Toolbar] Observe original profile for extension host notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/extensions/extension_action_view_controller.cc
diff --git a/chrome/browser/ui/extensions/extension_action_view_controller.cc b/chrome/browser/ui/extensions/extension_action_view_controller.cc
index 0b55989869a919faae12294155ed9ed64fd9838d..f2d1ce3979e3680b1edb657b12a111c8ef03bb0d 100644
--- a/chrome/browser/ui/extensions/extension_action_view_controller.cc
+++ b/chrome/browser/ui/extensions/extension_action_view_controller.cc
@@ -288,7 +288,8 @@ bool ExtensionActionViewController::ShowPopupWithUrl(
if (popup_host_) {
// Lazily register for notifications about extension host destructions.
static const int kType = extensions::NOTIFICATION_EXTENSION_HOST_DESTROYED;
- content::Source<content::BrowserContext> source(browser_->profile());
+ content::Source<content::BrowserContext> source(
+ browser_->profile()->GetOriginalProfile());
if (!registrar_.IsRegistered(this, kType, source))
registrar_.Add(this, kType, source);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698