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

Unified Diff: chrome/browser/ui/snapshot_tab_helper.cc

Issue 10909282: Switch SnapshotTabHelper to use WebContentsUserData. (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/ui/snapshot_tab_helper.h ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/snapshot_tab_helper.cc
diff --git a/chrome/browser/ui/snapshot_tab_helper.cc b/chrome/browser/ui/snapshot_tab_helper.cc
index d9a49c186afaed888b8dc993b2e3094575d996f8..891c3d54d5c155bdd9c2fb0daf7f201df9d383bb 100644
--- a/chrome/browser/ui/snapshot_tab_helper.cc
+++ b/chrome/browser/ui/snapshot_tab_helper.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/ui/snapshot_tab_helper.h"
-#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/render_messages.h"
#include "content/public/browser/notification_service.h"
@@ -12,8 +11,10 @@
using content::WebContents;
-SnapshotTabHelper::SnapshotTabHelper(WebContents* tab)
- : content::WebContentsObserver(tab) {
+int SnapshotTabHelper::kUserDataKey;
+
+SnapshotTabHelper::SnapshotTabHelper(WebContents* web_contents)
+ : content::WebContentsObserver(web_contents) {
}
SnapshotTabHelper::~SnapshotTabHelper() {
« no previous file with comments | « chrome/browser/ui/snapshot_tab_helper.h ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698