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

Unified Diff: chrome/browser/extensions/extension_tab_helper.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 years, 5 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
Index: chrome/browser/extensions/extension_tab_helper.cc
diff --git a/chrome/browser/extensions/extension_tab_helper.cc b/chrome/browser/extensions/extension_tab_helper.cc
index 5495e6ede85230b06f16a3e448377cc8880c8186..de1d5fafaa5f12583e626519a1227bc67764a273 100644
--- a/chrome/browser/extensions/extension_tab_helper.cc
+++ b/chrome/browser/extensions/extension_tab_helper.cc
@@ -63,8 +63,8 @@ void ExtensionTabHelper::SetExtensionAppById(
if (extension_app_id.empty())
return;
- ExtensionService* extension_service =
- tab_contents()->profile()->GetExtensionService();
+ Profile* profile = static_cast<Profile*>(tab_contents()->context());
+ ExtensionService* extension_service = profile->GetExtensionService();
if (!extension_service || !extension_service->is_ready())
return;
@@ -87,7 +87,8 @@ void ExtensionTabHelper::DidNavigateMainFramePostCommit(
if (details.is_in_page)
return;
- ExtensionService* service = tab_contents()->profile()->GetExtensionService();
+ Profile* profile = static_cast<Profile*>(tab_contents()->context());
+ ExtensionService* service = profile->GetExtensionService();
if (!service)
return;

Powered by Google App Engine
This is Rietveld 408576698