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

Unified Diff: chrome/browser/protector/base_setting_change.cc

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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
deleted file mode 100644
index aa6df39f674ce19eefdd5a5cca2896399163a99b..0000000000000000000000000000000000000000
--- a/chrome/browser/protector/base_setting_change.cc
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/protector/base_setting_change.h"
-#include "chrome/browser/protector/composite_settings_change.h"
-
-#include "base/logging.h"
-
-namespace protector {
-
-const size_t kDefaultSearchProviderChangeNamePriority = 100U;
-const size_t kSessionStartupChangeNamePriority = 50U;
-const size_t kHomepageChangeNamePriority = 10U;
-
-// static
-const size_t BaseSettingChange::kDefaultNamePriority = 0U;
-
-BaseSettingChange::BaseSettingChange()
- : profile_(NULL) {
-}
-
-BaseSettingChange::~BaseSettingChange() {
-}
-
-CompositeSettingsChange* BaseSettingChange::MergeWith(
- BaseSettingChange* other) {
- CompositeSettingsChange* composite_change = new CompositeSettingsChange();
- CHECK(composite_change->Init(profile_));
- composite_change->MergeWith(this);
- composite_change->MergeWith(other);
- return composite_change;
-}
-
-bool BaseSettingChange::Contains(const BaseSettingChange* other) const {
- // BaseSettingChange can only contain itself.
- return this == other;
-}
-
-bool BaseSettingChange::Init(Profile* profile) {
- DCHECK(profile && !profile_);
- profile_ = profile;
- return true;
-}
-
-void BaseSettingChange::InitWhenDisabled(Profile* profile) {
- DCHECK(profile && !profile_);
-}
-
-void BaseSettingChange::Apply(Browser* browser) {
-}
-
-void BaseSettingChange::Discard(Browser* browser) {
-}
-
-void BaseSettingChange::Timeout() {
-}
-
-BaseSettingChange::DisplayName BaseSettingChange::GetApplyDisplayName() const {
- return DisplayName(kDefaultNamePriority, string16());
-}
-
-GURL BaseSettingChange::GetNewSettingURL() const {
- return GURL();
-}
-
-bool BaseSettingChange::CanBeMerged() const {
- // By default change can be collapsed if it has a non-empty keyword.
- return !GetNewSettingURL().is_empty();
-}
-
-bool BaseSettingChange::IsUserVisible() const {
- return true;
-}
-
-} // namespace protector
« no previous file with comments | « chrome/browser/protector/base_setting_change.h ('k') | chrome/browser/protector/composite_settings_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698