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

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

Issue 10911105: Switch ScriptBadgeController and PageActionController to use WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/tab_helper.cc
diff --git a/chrome/browser/extensions/tab_helper.cc b/chrome/browser/extensions/tab_helper.cc
index 23900fc388080386a29970940b1c97227d7b1974..52b7656aea8fc58a077adba8575fb31723374270 100644
--- a/chrome/browser/extensions/tab_helper.cc
+++ b/chrome/browser/extensions/tab_helper.cc
@@ -66,9 +66,10 @@ TabHelper::TabHelper(TabContents* tab_contents)
tab_contents->profile()) {
if (switch_utils::AreScriptBadgesEnabled()) {
location_bar_controller_.reset(new ScriptBadgeController(
- tab_contents, &script_executor_));
+ tab_contents->web_contents(), &script_executor_));
} else {
- location_bar_controller_.reset(new PageActionController(tab_contents));
+ location_bar_controller_.reset(
+ new PageActionController(tab_contents->web_contents()));
}
registrar_.Add(this,
content::NOTIFICATION_LOAD_STOP,

Powered by Google App Engine
This is Rietveld 408576698