Index: chrome/browser/extensions/api/instance_id/instance_id_apitest.cc |
diff --git a/chrome/browser/extensions/api/instance_id/instance_id_apitest.cc b/chrome/browser/extensions/api/instance_id/instance_id_apitest.cc |
index 63a4674329d9a3318a185764ad97694bff63dae5..9a3e618f5ded98c9e84ccef548c756e2646bd6cb 100644 |
--- a/chrome/browser/extensions/api/instance_id/instance_id_apitest.cc |
+++ b/chrome/browser/extensions/api/instance_id/instance_id_apitest.cc |
@@ -11,10 +11,10 @@ |
#include "chrome/browser/extensions/extension_apitest.h" |
#include "chrome/browser/extensions/extension_gcm_app_handler.h" |
#include "chrome/browser/profiles/profile.h" |
-#include "chrome/browser/services/gcm/fake_gcm_profile_service.h" |
#include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
#include "chrome/browser/services/gcm/instance_id/instance_id_profile_service_factory.h" |
#include "chrome/test/base/ui_test_utils.h" |
+#include "components/gcm_driver/fake_gcm_profile_service.h" |
#include "components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h" |
#include "components/version_info/version_info.h" |
#include "extensions/test/result_catcher.h" |
@@ -28,7 +28,7 @@ namespace { |
std::unique_ptr<KeyedService> BuildFakeGCMProfileService( |
content::BrowserContext* context) { |
std::unique_ptr<gcm::FakeGCMProfileService> service( |
- new gcm::FakeGCMProfileService(Profile::FromBrowserContext(context))); |
+ new gcm::FakeGCMProfileService()); |
service->SetDriverForTesting(new instance_id::FakeGCMDriverForInstanceID()); |
return std::move(service); |
} |