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

Unified Diff: components/sync_driver/local_device_info_provider_mock.cc

Issue 1408123003: [Sync] Initial USS service implementation for DeviceInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated for Stan's comments. Created 5 years, 2 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 | « components/sync_driver/local_device_info_provider_mock.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/local_device_info_provider_mock.cc
diff --git a/components/sync_driver/local_device_info_provider_mock.cc b/components/sync_driver/local_device_info_provider_mock.cc
index 604d194ff228063dfc4b53ce70dba2e4f4ecbadb..8c22b8bfee867a43c5d29cb8238868a7099f3017 100644
--- a/components/sync_driver/local_device_info_provider_mock.cc
+++ b/components/sync_driver/local_device_info_provider_mock.cc
@@ -46,6 +46,12 @@ void LocalDeviceInfoProviderMock::Initialize(
// Ignored for the mock provider.
}
+void LocalDeviceInfoProviderMock::Initialize(
+ scoped_ptr<DeviceInfo> local_device_info) {
+ local_device_info_.swap(local_device_info);
+ SetInitialized(true);
+}
+
scoped_ptr<LocalDeviceInfoProvider::Subscription>
LocalDeviceInfoProviderMock::RegisterOnInitializedCallback(
const base::Closure& callback) {
« no previous file with comments | « components/sync_driver/local_device_info_provider_mock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698