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

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

Issue 64193003: Clean up PrefServiceBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory ownership bug in ProxyPolicyTest Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/pref_service_mock_builder.h ('k') | chrome/browser/prefs/pref_service_mock_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_service_mock_builder.cc
diff --git a/chrome/browser/prefs/pref_service_mock_builder.cc b/chrome/browser/prefs/pref_service_mock_builder.cc
deleted file mode 100644
index 7480b6b38867c77f733e73ae63f7de50825d2c88..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/pref_service_mock_builder.cc
+++ /dev/null
@@ -1,30 +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/prefs/pref_service_mock_builder.h"
-
-#include "base/prefs/testing_pref_store.h"
-#include "components/user_prefs/pref_registry_syncable.h"
-
-PrefServiceMockBuilder::PrefServiceMockBuilder() {
- ResetDefaultState();
-}
-
-PrefServiceMockBuilder::~PrefServiceMockBuilder() {}
-
-PrefService* PrefServiceMockBuilder::Create(PrefRegistry* pref_registry) {
- PrefService* service = PrefServiceBuilder::Create(pref_registry);
- return service;
-}
-
-PrefServiceSyncable* PrefServiceMockBuilder::CreateSyncable(
- user_prefs::PrefRegistrySyncable* pref_registry) {
- PrefServiceSyncable* service =
- PrefServiceSyncableBuilder::CreateSyncable(pref_registry);
- return service;
-}
-
-void PrefServiceMockBuilder::ResetDefaultState() {
- user_prefs_ = new TestingPrefStore;
-}
« no previous file with comments | « chrome/browser/prefs/pref_service_mock_builder.h ('k') | chrome/browser/prefs/pref_service_mock_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698