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

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

Issue 11421192: Save extension activity log to a file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: something about lkgr 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 177317)
+++ chrome/browser/extensions/tab_helper.cc (working copy)
@@ -103,9 +103,11 @@
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.
- AddScriptExecutionObserver(ActivityLog::GetInstance());
+ profile_ = Profile::FromBrowserContext(web_contents->GetBrowserContext());
+ AddScriptExecutionObserver(ActivityLog::GetInstance(profile_));
registrar_.Add(this,
content::NOTIFICATION_LOAD_STOP,
@@ -118,7 +120,7 @@
}
TabHelper::~TabHelper() {
- RemoveScriptExecutionObserver(ActivityLog::GetInstance());
+ RemoveScriptExecutionObserver(ActivityLog::GetInstance(profile_));
}
void TabHelper::CreateApplicationShortcuts() {
« 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