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

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

Issue 10066013: [protector] Homepage UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License update. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/protector/base_setting_change.h ('k') | chrome/browser/protector/histograms.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/protector/base_setting_change.h ('k') | chrome/browser/protector/histograms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698