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

Unified Diff: chrome/browser/extensions/script_badge_controller.h

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/script_badge_controller.h
diff --git a/chrome/browser/extensions/script_badge_controller.h b/chrome/browser/extensions/script_badge_controller.h
index d3bb4c8b0bf2888feea779d65f766b8cdeeabbaa..13281fe3728b23ce5712a15e2404fa06e1432954 100644
--- a/chrome/browser/extensions/script_badge_controller.h
+++ b/chrome/browser/extensions/script_badge_controller.h
@@ -21,7 +21,6 @@
class ExtensionAction;
class ExtensionService;
class GURL;
-class TabContents;
namespace base {
class ListValue;
@@ -53,7 +52,7 @@ class ScriptBadgeController
public content::WebContentsObserver,
public content::NotificationObserver {
public:
- explicit ScriptBadgeController(TabContents* tab_contents,
+ explicit ScriptBadgeController(content::WebContents* web_contents,
ScriptExecutor* script_executor);
virtual ~ScriptBadgeController();
@@ -110,9 +109,6 @@ class ScriptBadgeController
// whether any change was made.
bool EraseExtension(const Extension* extension);
- // Our parent TabContents.
- TabContents* tab_contents_;
-
// The current extension actions in the order they appeared. These come from
// calls to ExecuteScript or getAttention on the current frame.
std::vector<ExtensionAction*> current_actions_;

Powered by Google App Engine
This is Rietveld 408576698