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

Side by Side Diff: components/drive/drive_test_util.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « components/drive/directory_loader_unittest.cc ('k') | components/drive/file_system.cc » ('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 "components/drive/drive_test_util.h" 5 #include "components/drive/drive_test_util.h"
6 6
7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/testing_pref_service.h"
9 #include "components/drive/drive.pb.h" 7 #include "components/drive/drive.pb.h"
10 #include "components/drive/drive_pref_names.h" 8 #include "components/drive/drive_pref_names.h"
9 #include "components/prefs/pref_registry_simple.h"
10 #include "components/prefs/testing_pref_service.h"
11 11
12 namespace drive { 12 namespace drive {
13 namespace test_util { 13 namespace test_util {
14 14
15 void RegisterDrivePrefs(PrefRegistrySimple* pref_registry) { 15 void RegisterDrivePrefs(PrefRegistrySimple* pref_registry) {
16 pref_registry->RegisterBooleanPref( 16 pref_registry->RegisterBooleanPref(
17 prefs::kDisableDrive, 17 prefs::kDisableDrive,
18 false); 18 false);
19 pref_registry->RegisterBooleanPref( 19 pref_registry->RegisterBooleanPref(
20 prefs::kDisableDriveOverCellular, 20 prefs::kDisableDriveOverCellular,
(...skipping 12 matching lines...) Expand all
33 NotifyObserversOfConnectionTypeChange(); 33 NotifyObserversOfConnectionTypeChange();
34 } 34 }
35 35
36 net::NetworkChangeNotifier::ConnectionType 36 net::NetworkChangeNotifier::ConnectionType
37 FakeNetworkChangeNotifier::GetCurrentConnectionType() const { 37 FakeNetworkChangeNotifier::GetCurrentConnectionType() const {
38 return type_; 38 return type_;
39 } 39 }
40 40
41 } // namespace test_util 41 } // namespace test_util
42 } // namespace drive 42 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/directory_loader_unittest.cc ('k') | components/drive/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698