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

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

Issue 11886084: Revert 177235 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/extensions/tab_helper.h ('k') | chrome/browser/extensions/url_actions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/tab_helper.cc
===================================================================
--- chrome/browser/extensions/tab_helper.cc (revision 177252)
+++ chrome/browser/extensions/tab_helper.cc (working copy)
@@ -103,11 +103,9 @@
new ScriptBubbleController(web_contents, this));
}
-
// If more classes need to listen to global content script activity, then
// a separate routing class with an observer interface should be written.
- profile_ = Profile::FromBrowserContext(web_contents->GetBrowserContext());
- AddScriptExecutionObserver(ActivityLog::GetInstance(profile_));
+ AddScriptExecutionObserver(ActivityLog::GetInstance());
registrar_.Add(this,
content::NOTIFICATION_LOAD_STOP,
@@ -120,7 +118,7 @@
}
TabHelper::~TabHelper() {
- RemoveScriptExecutionObserver(ActivityLog::GetInstance(profile_));
+ RemoveScriptExecutionObserver(ActivityLog::GetInstance());
}
void TabHelper::CreateApplicationShortcuts() {
Property changes on: chrome/browser/extensions/tab_helper.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « chrome/browser/extensions/tab_helper.h ('k') | chrome/browser/extensions/url_actions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698