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

Unified Diff: chrome/browser/sync/test/integration/sync_integration_test_util.cc

Issue 2799003002: Unpack theme data from extensions off of UI thread. (Closed)
Patch Set: fix gtk case 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/sync/test/integration/sync_integration_test_util.cc
diff --git a/chrome/browser/sync/test/integration/sync_integration_test_util.cc b/chrome/browser/sync/test/integration/sync_integration_test_util.cc
index 42ef3e2444799bdf7a340528f1b5b8837e04b589..d9afa063261d7303b2d3a0d708ac45ce646f4992 100644
--- a/chrome/browser/sync/test/integration/sync_integration_test_util.cc
+++ b/chrome/browser/sync/test/integration/sync_integration_test_util.cc
@@ -5,7 +5,20 @@
#include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
#include "base/strings/stringprintf.h"
+#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/sync/test/integration/themes_helper.h"
+#include "chrome/browser/themes/theme_service_factory.h"
#include "components/browser_sync/profile_sync_service.h"
+#include "content/public/test/test_utils.h"
+
+void SetCustomTheme(Profile* profile, int theme_index) {
+ themes_helper::UseCustomTheme(profile, theme_index);
+ content::WindowedNotificationObserver theme_change_observer(
+ chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
+ content::Source<ThemeService>(
+ ThemeServiceFactory::GetForProfile(profile)));
+ theme_change_observer.Wait();
+}
ServerCountMatchStatusChecker::ServerCountMatchStatusChecker(
syncer::ModelType type,

Powered by Google App Engine
This is Rietveld 408576698