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

Side by Side Diff: components/sync/device_info/local_device_info_provider_mock.cc

Issue 2250033002: [Sync] Create //components/sync/device_info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lint on device info files. Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync/driver/local_device_info_provider_mock.h" 5 #include "components/sync/device_info/local_device_info_provider_mock.h"
6 6
7 namespace sync_driver { 7 namespace sync_driver {
8 8
9 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock() 9 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock()
10 : is_initialized_(false) {} 10 : is_initialized_(false) {}
11 11
12 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock( 12 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock(
13 const std::string& guid, 13 const std::string& guid,
14 const std::string& client_name, 14 const std::string& client_name,
15 const std::string& chrome_version, 15 const std::string& chrome_version,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 void LocalDeviceInfoProviderMock::SetInitialized(bool is_initialized) { 67 void LocalDeviceInfoProviderMock::SetInitialized(bool is_initialized) {
68 is_initialized_ = is_initialized; 68 is_initialized_ = is_initialized;
69 if (is_initialized_) { 69 if (is_initialized_) {
70 callback_list_.Notify(); 70 callback_list_.Notify();
71 } 71 }
72 } 72 }
73 73
74 } // namespace sync_driver 74 } // namespace sync_driver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698