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

Unified Diff: chrome/browser/services/gcm/fake_gcm_profile_service.cc

Issue 1425783002: Componentizing GcmProfileService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UT errors as per comments Created 5 years, 1 month 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/services/gcm/fake_gcm_profile_service.cc
diff --git a/chrome/browser/services/gcm/fake_gcm_profile_service.cc b/chrome/browser/services/gcm/fake_gcm_profile_service.cc
index e0530d56da478b32b3a1ae4816992c3d9638d7ea..eeba262ca99966822f2ce7dc1601dd83561cc7d3 100644
--- a/chrome/browser/services/gcm/fake_gcm_profile_service.cc
+++ b/chrome/browser/services/gcm/fake_gcm_profile_service.cc
@@ -12,6 +12,7 @@
#include "base/strings/stringprintf.h"
#include "base/thread_task_runner_handle.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
#include "components/gcm_driver/fake_gcm_client_factory.h"
#include "components/gcm_driver/fake_gcm_driver.h"
#include "components/gcm_driver/gcm_driver.h"
@@ -104,7 +105,9 @@ scoped_ptr<KeyedService> FakeGCMProfileService::Build(
content::BrowserContext* context) {
Profile* profile = static_cast<Profile*>(context);
scoped_ptr<FakeGCMProfileService> service(new FakeGCMProfileService(profile));
- service->SetDriverForTesting(new CustomFakeGCMDriver(service.get()));
+ service->SetDriverForTesting(
+ LoginUIServiceFactory::GetShowLoginPopupCallbackForProfile(profile),
+ new CustomFakeGCMDriver(service.get()));
return service.Pass();
}
« no previous file with comments | « chrome/browser/services/gcm/fake_gcm_profile_service.h ('k') | chrome/browser/services/gcm/gcm_profile_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698