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

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

Issue 10993064: Make using WebContentsUserData simpler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 4c5521f130278667fc941584947262cc2e7e68a0..bd0a74f0a7dece9cc42d1f6f44a7dec648152e04 100644
--- a/chrome/browser/extensions/tab_helper.cc
+++ b/chrome/browser/extensions/tab_helper.cc
@@ -45,6 +45,8 @@ using content::NavigationEntry;
using content::RenderViewHost;
using content::WebContents;
+DEFINE_WEB_CONTENTS_USER_DATA_KEY(extensions::TabHelper)
+
namespace {
const char kPermissionError[] = "permission_error";
@@ -53,8 +55,6 @@ const char kPermissionError[] = "permission_error";
namespace extensions {
-int TabHelper::kUserDataKey;
-
TabHelper::ContentScriptObserver::ContentScriptObserver(TabHelper* tab_helper)
: tab_helper_(tab_helper) {
tab_helper_->AddContentScriptObserver(this);

Powered by Google App Engine
This is Rietveld 408576698