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

Unified Diff: chrome/browser/ui/metro_pin_tab_helper.h

Issue 10891033: Switch MetroPinTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small clean 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
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/metro_pin_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/metro_pin_tab_helper.h
diff --git a/chrome/browser/ui/metro_pin_tab_helper.h b/chrome/browser/ui/metro_pin_tab_helper.h
index c72e503236209ea9eb48a5f37c71b16d2b93737e..c439414d7ec1ad9c5dbc684c3c0b3deb37ba508c 100644
--- a/chrome/browser/ui/metro_pin_tab_helper.h
+++ b/chrome/browser/ui/metro_pin_tab_helper.h
@@ -5,13 +5,16 @@
#ifndef CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
#define CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
+#include "chrome/browser/tab_contents/web_contents_user_data.h"
#include "content/public/browser/web_contents_observer.h"
// Per-tab class to help manage metro pinning.
-class MetroPinTabHelper : public content::WebContentsObserver {
+class MetroPinTabHelper : public content::WebContentsObserver,
+ public WebContentsUserData<MetroPinTabHelper> {
public:
explicit MetroPinTabHelper(content::WebContents* tab_contents);
virtual ~MetroPinTabHelper();
+ static int kUserDataKey;
bool is_pinned() const { return is_pinned_; }
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/metro_pin_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698