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

Unified Diff: chrome/browser/prefs/mock_pref_change_callback.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/mock_pref_change_callback.h ('k') | chrome/browser/prefs/pref_model_associator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/mock_pref_change_callback.cc
diff --git a/chrome/browser/prefs/mock_pref_change_callback.cc b/chrome/browser/prefs/mock_pref_change_callback.cc
deleted file mode 100644
index 3dbd2a0483daea2f2fb9bc9789263be4fa5a2ce2..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/mock_pref_change_callback.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2011 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/prefs/mock_pref_change_callback.h"
-
-#include "base/bind.h"
-#include "chrome/common/chrome_notification_types.h"
-
-MockPrefChangeCallback::MockPrefChangeCallback(PrefServiceBase* prefs)
- : prefs_(prefs) {
-}
-
-MockPrefChangeCallback::~MockPrefChangeCallback() {}
-
-PrefChangeRegistrar::NamedChangeCallback MockPrefChangeCallback::GetCallback() {
- return base::Bind(&MockPrefChangeCallback::OnPreferenceChanged,
- base::Unretained(this));
-}
-
-void MockPrefChangeCallback::Expect(const std::string& pref_name,
- const Value* value) {
- EXPECT_CALL(*this, OnPreferenceChanged(pref_name))
- .With(PrefValueMatches(prefs_, pref_name, value));
-}
« no previous file with comments | « chrome/browser/prefs/mock_pref_change_callback.h ('k') | chrome/browser/prefs/pref_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698