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

Unified Diff: ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.cc

Issue 1607473003: Create profile_sync_test_util in components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS Created 4 years, 11 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/browser_sync/browser/profile_sync_test_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.cc
diff --git a/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.cc b/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.cc
index 556651f78354b16090f8de72ede8d4249204c57b..624e5788081e49595ecd91bf9cebef8d9b85102b 100644
--- a/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.cc
+++ b/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.cc
@@ -5,8 +5,8 @@
#include "ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h"
#include "base/bind.h"
-#include "base/time/time.h"
#include "components/browser_sync/browser/profile_sync_service_mock.h"
+#include "components/browser_sync/browser/profile_sync_test_util.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_manager.h"
#include "components/sync_driver/signin_manager_wrapper.h"
@@ -17,14 +17,6 @@
#include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/web/public/web_thread.h"
-namespace {
-
-void EmptyNetworkTimeUpdate(const base::Time&,
- const base::TimeDelta&,
- const base::TimeDelta&) {}
-
-} // namespace
-
ProfileSyncService::InitParams CreateProfileSyncServiceParamsForTest(
scoped_ptr<sync_driver::SyncClient> sync_client,
ios::ChromeBrowserState* browser_state) {
@@ -39,7 +31,7 @@ ProfileSyncService::InitParams CreateProfileSyncServiceParamsForTest(
sync_client ? std::move(sync_client)
: make_scoped_ptr(new IOSChromeSyncClient(browser_state));
init_params.network_time_update_callback =
- base::Bind(&EmptyNetworkTimeUpdate);
+ base::Bind(&browser_sync::EmptyNetworkTimeUpdate);
init_params.base_directory = browser_state->GetStatePath();
init_params.url_request_context = browser_state->GetRequestContext();
init_params.debug_identifier = browser_state->GetDebugName();
« no previous file with comments | « components/browser_sync/browser/profile_sync_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698