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

Unified Diff: chrome/browser/protector/prefs_backup_invalid_change.cc

Issue 10065016: [protector] Refactoring of --no-protector code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 8 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/protector/mock_setting_change.h ('k') | chrome/browser/protector/protected_prefs_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/prefs_backup_invalid_change.cc
diff --git a/chrome/browser/protector/prefs_backup_invalid_change.cc b/chrome/browser/protector/prefs_backup_invalid_change.cc
index 2d865847efd265b258646aa3f5c0ea33da2f47f3..a30ba4c874ccc3b9d18a05cb816a375b308b78c1 100644
--- a/chrome/browser/protector/prefs_backup_invalid_change.cc
+++ b/chrome/browser/protector/prefs_backup_invalid_change.cc
@@ -30,6 +30,7 @@ class PrefsBackupInvalidChange : public BasePrefsChange {
// BasePrefsChange overrides:
virtual bool Init(Profile* profile) OVERRIDE;
+ virtual void InitWhenDisabled(Profile* profile) OVERRIDE;
virtual void Apply(Browser* browser) OVERRIDE;
virtual void Discard(Browser* browser) OVERRIDE;
virtual void Timeout() OVERRIDE;
@@ -74,6 +75,10 @@ bool PrefsBackupInvalidChange::Init(Profile* profile) {
return true;
}
+void PrefsBackupInvalidChange::InitWhenDisabled(Profile* profile) {
+ // Nothing to do here since the backup has been already reset.
+}
+
void PrefsBackupInvalidChange::Apply(Browser* browser) {
NOTREACHED();
}
« no previous file with comments | « chrome/browser/protector/mock_setting_change.h ('k') | chrome/browser/protector/protected_prefs_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698