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

Unified Diff: chrome/browser/ui/webui/sync_internals_message_handler.cc

Issue 2909283003: [Sync] Split UserEventService into interface and impl, add fake impl, add unit tests. (Closed)
Patch Set: Added a NoOp service to handle OffTheRecord. Created 3 years, 7 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
Index: chrome/browser/ui/webui/sync_internals_message_handler.cc
diff --git a/chrome/browser/ui/webui/sync_internals_message_handler.cc b/chrome/browser/ui/webui/sync_internals_message_handler.cc
index e67fbc1a7a7458646184fdf31e877bd1bc5fd339..c629de94a1996688dd5eb9990d90832668aa9b41 100644
--- a/chrome/browser/ui/webui/sync_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/sync_internals_message_handler.cc
@@ -215,8 +215,7 @@ void SyncInternalsMessageHandler::HandleWriteUserEvent(
Profile* profile = Profile::FromWebUI(web_ui());
syncer::UserEventService* user_event_service =
- browser_sync::UserEventServiceFactory::GetForProfile(
- profile->GetOriginalProfile());
+ browser_sync::UserEventServiceFactory::GetForProfile(profile);
sync_pb::UserEventSpecifics event_specifics;
event_specifics.set_event_time_usec(StringAtIndexToInt64(args, 0));
« no previous file with comments | « chrome/browser/sync/user_event_service_factory.cc ('k') | chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698