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

Unified Diff: chrome/browser/profiles/profile_impl.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: remove redundant cast 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
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/push_messaging/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 05bd533d4a6ece678fe3d1b9d5096a95360bb7e8..ae8aa8af3a89777be73941db9502be50c05e0bc2 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -60,10 +60,10 @@
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/profiles/profile_metrics.h"
+#include "chrome/browser/push_messaging/push_messaging_service_factory.h"
+#include "chrome/browser/push_messaging/push_messaging_service_impl.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/services/gcm/gcm_profile_service.h"
-#include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
-#include "chrome/browser/services/gcm/push_messaging_service_impl.h"
#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/signin/signin_ui_util.h"
@@ -691,7 +691,7 @@ void ProfileImpl::DoFinalInit() {
model->AddObserver(new BookmarkModelLoadedObserver(this));
#endif
- gcm::PushMessagingServiceImpl::InitializeForProfile(this);
+ PushMessagingServiceImpl::InitializeForProfile(this);
#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && !defined(OS_IOS)
signin_ui_util::InitializePrefsForProfile(this);
@@ -1066,8 +1066,7 @@ storage::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() {
}
content::PushMessagingService* ProfileImpl::GetPushMessagingService() {
- return gcm::GCMProfileServiceFactory::GetForProfile(
- this)->push_messaging_service();
+ return PushMessagingServiceFactory::GetForProfile(this);
}
content::SSLHostStateDelegate* ProfileImpl::GetSSLHostStateDelegate() {
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/push_messaging/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698