OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/protector/composite_settings_change.h" | 6 #include "chrome/browser/protector/composite_settings_change.h" |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 | 9 |
10 namespace protector { | 10 namespace protector { |
11 | 11 |
12 // static | |
13 const size_t kDefaultSearchProviderChangeNamePriority = 100U; | 12 const size_t kDefaultSearchProviderChangeNamePriority = 100U; |
14 // static | |
15 const size_t kSessionStartupChangeNamePriority = 50U; | 13 const size_t kSessionStartupChangeNamePriority = 50U; |
| 14 const size_t kHomepageChangeNamePriority = 10U; |
16 | 15 |
17 // static | 16 // static |
18 const size_t BaseSettingChange::kDefaultNamePriority = 0U; | 17 const size_t BaseSettingChange::kDefaultNamePriority = 0U; |
19 | 18 |
20 BaseSettingChange::BaseSettingChange() | 19 BaseSettingChange::BaseSettingChange() |
21 : profile_(NULL) { | 20 : profile_(NULL) { |
22 } | 21 } |
23 | 22 |
24 BaseSettingChange::~BaseSettingChange() { | 23 BaseSettingChange::~BaseSettingChange() { |
25 } | 24 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 62 |
64 GURL BaseSettingChange::GetNewSettingURL() const { | 63 GURL BaseSettingChange::GetNewSettingURL() const { |
65 return GURL(); | 64 return GURL(); |
66 } | 65 } |
67 | 66 |
68 bool BaseSettingChange::CanBeMerged() const { | 67 bool BaseSettingChange::CanBeMerged() const { |
69 // By default change can be collapsed if it has a non-empty keyword. | 68 // By default change can be collapsed if it has a non-empty keyword. |
70 return !GetNewSettingURL().is_empty(); | 69 return !GetNewSettingURL().is_empty(); |
71 } | 70 } |
72 | 71 |
| 72 bool BaseSettingChange::IsUserVisible() const { |
| 73 return true; |
| 74 } |
| 75 |
73 } // namespace protector | 76 } // namespace protector |
OLD | NEW |