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

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

Issue 673363002: Cleanup: Remove old profile.extensions.activity_log.watchdog_extension_active preference. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 110dfa0f7e2d083c25dc679fd199610a5e9eb238..849bc86fcd4152f30f95dc8e045b2ddd6fc35625 100644
--- a/chrome/browser/extensions/activity_log/activity_log.cc
+++ b/chrome/browser/extensions/activity_log/activity_log.cc
@@ -364,11 +364,6 @@ ActivityLog::ActivityLog(content::BrowserContext* context)
switches::kEnableExtensionActivityLogTesting);
// Check if the watchdog extension is previously installed and active.
- // It was originally a boolean, but we've had to move to an integer. Handle
- // the legacy case.
- // TODO(felt): In M34, remove the legacy code & old pref.
- if (profile_->GetPrefs()->GetBoolean(prefs::kWatchdogExtensionActiveOld))
- profile_->GetPrefs()->SetInteger(prefs::kWatchdogExtensionActive, 1);
watchdog_apps_active_ =
profile_->GetPrefs()->GetInteger(prefs::kWatchdogExtensionActive);
@@ -521,10 +516,6 @@ void ActivityLog::RegisterProfilePrefs(
prefs::kWatchdogExtensionActive,
false,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterBooleanPref(
- prefs::kWatchdogExtensionActiveOld,
- false,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
}
// LOG ACTIONS. ----------------------------------------------------------------
« no previous file with comments | « no previous file | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698