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

Unified Diff: chrome/browser/protector/base_setting_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
Index: chrome/browser/protector/base_setting_change.cc
diff --git a/chrome/browser/protector/base_setting_change.cc b/chrome/browser/protector/base_setting_change.cc
index 4c5ba032dd38eefc4a2ae9d1639ee5973ac79c3e..fbb09c9fda56ca857ef6df49fe4db26f6746087d 100644
--- a/chrome/browser/protector/base_setting_change.cc
+++ b/chrome/browser/protector/base_setting_change.cc
@@ -39,11 +39,15 @@ bool BaseSettingChange::Contains(const BaseSettingChange* other) const {
}
bool BaseSettingChange::Init(Profile* profile) {
- DCHECK(profile);
+ DCHECK(profile && !profile_);
profile_ = profile;
return true;
}
+void BaseSettingChange::InitWhenDisabled(Profile* profile) {
+ DCHECK(profile && !profile_);
+}
+
void BaseSettingChange::Apply(Browser* browser) {
}
« no previous file with comments | « chrome/browser/protector/base_setting_change.h ('k') | chrome/browser/protector/default_search_provider_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698