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

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

Issue 10933105: Switch WebContentsUserData to be a friended base. (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
« no previous file with comments | « chrome/browser/tab_contents/web_contents_user_data_unittest.cc ('k') | no next file » | 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 c439414d7ec1ad9c5dbc684c3c0b3deb37ba508c..c04502a9660e888c94520aa26fe64321ebc3004c 100644
--- a/chrome/browser/ui/metro_pin_tab_helper.h
+++ b/chrome/browser/ui/metro_pin_tab_helper.h
@@ -12,9 +12,7 @@
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_; }
@@ -26,6 +24,10 @@ class MetroPinTabHelper : public content::WebContentsObserver,
const content::FrameNavigateParams& params) OVERRIDE;
private:
+ explicit MetroPinTabHelper(content::WebContents* tab_contents);
+ static int kUserDataKey;
+ friend class WebContentsUserData<MetroPinTabHelper>;
+
// Queries the metro driver about the pinned state of the current URL.
void UpdatePinnedStateForCurrentURL();
« no previous file with comments | « chrome/browser/tab_contents/web_contents_user_data_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698