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

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

Issue 648623003: PushMessagingBrowserTest for registration success and failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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/push_messaging_service_impl.cc
diff --git a/chrome/browser/services/gcm/push_messaging_service_impl.cc b/chrome/browser/services/gcm/push_messaging_service_impl.cc
index ec7b461420d340288fffabedf7ac30dc566b2b98..81e3053d2ed95f6d979ee5f67e77e6ebdf85a00d 100644
--- a/chrome/browser/services/gcm/push_messaging_service_impl.cc
+++ b/chrome/browser/services/gcm/push_messaging_service_impl.cc
@@ -257,6 +257,10 @@ void PushMessagingServiceImpl::DidRegister(
RegisterEnd(callback, registration_id, status);
}
+void PushMessagingServiceImpl::SetProfileForTesting(Profile* profile) {
+ profile_ = profile;
+}
+
void PushMessagingServiceImpl::DidRequestPermission(
const PushMessagingApplicationId& application_id,
const std::string& sender_id,

Powered by Google App Engine
This is Rietveld 408576698