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(); |
} |