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

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

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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/activity_log/activity_log.cc
diff --git a/chrome/browser/extensions/activity_log/activity_log.cc b/chrome/browser/extensions/activity_log/activity_log.cc
index 849bc86fcd4152f30f95dc8e045b2ddd6fc35625..509393f9aa1b73c9f10ba2b854bdd4aa88834f36 100644
--- a/chrome/browser/extensions/activity_log/activity_log.cc
+++ b/chrome/browser/extensions/activity_log/activity_log.cc
@@ -360,8 +360,8 @@ ActivityLog::ActivityLog(content::BrowserContext* context)
extension_registry_observer_(this),
watchdog_apps_active_(0) {
// This controls whether logging statements are printed & which policy is set.
- testing_mode_ = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExtensionActivityLogTesting);
+ testing_mode_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableExtensionActivityLogTesting);
// Check if the watchdog extension is previously installed and active.
watchdog_apps_active_ =
@@ -377,10 +377,10 @@ ActivityLog::ActivityLog(content::BrowserContext* context)
has_threads_ = false;
}
- db_enabled_ = has_threads_
- && (CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kEnableExtensionActivityLogging)
- || watchdog_apps_active_);
+ db_enabled_ =
+ has_threads_ && (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableExtensionActivityLogging) ||
+ watchdog_apps_active_);
ExtensionSystem::Get(profile_)->ready().Post(
FROM_HERE,
@@ -480,7 +480,7 @@ void ActivityLog::OnExtensionUnloaded(content::BrowserContext* browser_context,
profile_->GetPrefs()->SetInteger(prefs::kWatchdogExtensionActive,
watchdog_apps_active_);
if (watchdog_apps_active_ == 0 &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableExtensionActivityLogging)) {
db_enabled_ = false;
}
@@ -492,7 +492,7 @@ void ActivityLog::OnExtensionUninstalled(
const Extension* extension,
extensions::UninstallReason reason) {
if (ActivityLogAPI::IsExtensionWhitelisted(extension->id()) &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableExtensionActivityLogging) &&
watchdog_apps_active_ == 0) {
DeleteDatabase();

Powered by Google App Engine
This is Rietveld 408576698