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

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

Issue 955673004: Move gcm-independent parts of push messaging out of gcm namespace and directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: buildfix push_messaging_application_id_unittest 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
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 3d2d2109cdfbe5eb0858b789bccd4fbc4c3e5837..09222e6e0b41c2a960cc0e00c8179a8ed53b0b20 100644
--- a/chrome/browser/services/gcm/fake_gcm_profile_service.cc
+++ b/chrome/browser/services/gcm/fake_gcm_profile_service.cc
@@ -115,12 +115,14 @@ KeyedService* FakeGCMProfileService::Build(content::BrowserContext* context) {
FakeGCMProfileService::FakeGCMProfileService(Profile* profile)
: collect_(false),
registration_count_(0) {
- static_cast<PushMessagingServiceImpl*>(push_messaging_service())
- ->SetProfileForTesting(profile);
}
FakeGCMProfileService::~FakeGCMProfileService() {}
+FakeGCMProfileService* FakeGCMProfileService::AsFakeGCMProfileService() {
+ return this;
+}
+
void FakeGCMProfileService::RegisterFinished(
const std::string& app_id,
const std::vector<std::string>& sender_ids) {

Powered by Google App Engine
This is Rietveld 408576698