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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 18430004: Sets correct ActivityLog enabled status to the first renderer process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New approach with a preference variable Created 7 years, 5 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 8a36b6947476fd1ee1ba4758ff27e4b9a1d0efcb..1b8774418bbf95aca88bd96b0fb7582f3ed1a787 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -720,13 +720,6 @@ content::WebContentsViewDelegate*
return chrome::CreateWebContentsViewDelegate(web_contents);
}
-// Check if the extension activity log is enabled for the profile.
-static bool IsExtensionActivityLogEnabledForProfile(Profile* profile) {
- // crbug.com/247908 - This should be IsLogEnabled except for an issue
- // in chrome_frame_net_tests
- return extensions::ActivityLog::IsLogEnabledOnAnyProfile();
-}
-
void ChromeContentBrowserClient::GuestWebContentsCreated(
WebContents* guest_web_contents,
WebContents* opener_web_contents,
@@ -846,7 +839,7 @@ void ChromeContentBrowserClient::RenderProcessHostCreated(
profile->IsOffTheRecord()));
host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled(
- IsExtensionActivityLogEnabledForProfile(profile)));
+ extensions::ActivityLog::GetInstance(profile)->IsLogEnabled()));
SendExtensionWebRequestStatusToHost(host);

Powered by Google App Engine
This is Rietveld 408576698