OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/protector/base_setting_change.h" | 5 #include "chrome/browser/protector/base_setting_change.h" |
6 | 6 |
| 7 #include "base/logging.h" |
| 8 |
7 namespace protector { | 9 namespace protector { |
8 | 10 |
9 BaseSettingChange::BaseSettingChange() { | 11 BaseSettingChange::BaseSettingChange() |
| 12 : protector_(NULL) { |
10 } | 13 } |
11 | 14 |
12 BaseSettingChange::~BaseSettingChange() { | 15 BaseSettingChange::~BaseSettingChange() { |
13 } | 16 } |
14 | 17 |
15 bool BaseSettingChange::Init(Protector* protector) { | 18 bool BaseSettingChange::Init(Protector* protector) { |
| 19 DCHECK(protector); |
| 20 protector_ = protector; |
16 return true; | 21 return true; |
17 } | 22 } |
18 | 23 |
19 void BaseSettingChange::Apply(Protector* protector) { | 24 void BaseSettingChange::Apply() { |
20 } | 25 } |
21 | 26 |
22 void BaseSettingChange::Discard(Protector* protector) { | 27 void BaseSettingChange::Discard() { |
| 28 } |
| 29 |
| 30 void BaseSettingChange::OnBeforeRemoved() { |
23 } | 31 } |
24 | 32 |
25 } // namespace protector | 33 } // namespace protector |
OLD | NEW |