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

Side by Side Diff: chrome/browser/protector/base_setting_change.cc

Issue 8612002: Protector bubble cancels itself if user changes default search engine manually. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698