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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 936673002: DCHECK that ProfileSyncService is created on the UI thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove snap_. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/backend_migrator_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 61ad4f310473e5db1bdeb9539e9d4febdfee8d8b..ea9a3a3b8a9e0303bd786c249e1f5dcd9821640d 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -242,6 +242,7 @@ ProfileSyncService::ProfileSyncService(
browsing_data_remover_observer_(NULL),
weak_factory_(this),
startup_controller_weak_factory_(this) {
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(profile);
startup_controller_.reset(new browser_sync::StartupController(
start_behavior,
« no previous file with comments | « chrome/browser/sync/backend_migrator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698