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

Unified Diff: chrome/browser/infobars/infobar_tab_helper.cc

Issue 11085055: Make the WebContentsUserData locator key private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, catch more uses of the key Created 8 years, 2 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/infobars/infobar_tab_helper.cc
diff --git a/chrome/browser/infobars/infobar_tab_helper.cc b/chrome/browser/infobars/infobar_tab_helper.cc
index f0ce1acdc3cf9e046a79a890c1bf1d60a07d2eaf..bcbd72101735be60ac820d7b31af069beeffdb92 100644
--- a/chrome/browser/infobars/infobar_tab_helper.cc
+++ b/chrome/browser/infobars/infobar_tab_helper.cc
@@ -219,7 +219,7 @@ void InfoBarTabHelper::Observe(int type,
// ourselves lest other parts of the system attempt to add infobars or use
// us otherwise during the destruction.
DCHECK_EQ(web_contents(), content::Source<WebContents>(source).ptr());
- web_contents()->RemoveUserData(&kLocatorKey);
+ web_contents()->RemoveUserData(UserDataKey());
// That was the equivalent of "delete this". This object is now destroyed;
// returning from this function is the only safe thing to do.
return;

Powered by Google App Engine
This is Rietveld 408576698