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

Unified Diff: chrome/browser/services/gcm/instance_id/instance_id_profile_service.cc

Issue 2657823005: Move //c/b/services/gcm/ to //c/b/gcm/ (Closed)
Patch Set: Created 3 years, 11 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/instance_id/instance_id_profile_service.cc
diff --git a/chrome/browser/services/gcm/instance_id/instance_id_profile_service.cc b/chrome/browser/services/gcm/instance_id/instance_id_profile_service.cc
deleted file mode 100644
index 635577f33ceabb7da7e35af7937ca005407af916..0000000000000000000000000000000000000000
--- a/chrome/browser/services/gcm/instance_id/instance_id_profile_service.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/services/gcm/instance_id/instance_id_profile_service.h"
-
-#include "base/logging.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
-#include "components/gcm_driver/gcm_profile_service.h"
-#include "components/gcm_driver/instance_id/instance_id_driver.h"
-
-namespace instance_id {
-
-// static
-bool InstanceIDProfileService::IsInstanceIDEnabled(Profile* profile) {
- // Instance ID depends on GCM which has to been enabled.
- if (!gcm::GCMProfileService::IsGCMEnabled(profile->GetPrefs()))
- return false;
-
- return InstanceIDDriver::IsInstanceIDEnabled();
-}
-
-InstanceIDProfileService::InstanceIDProfileService(Profile* profile) {
- DCHECK(!profile->IsOffTheRecord());
-
- driver_.reset(new InstanceIDDriver(
- gcm::GCMProfileServiceFactory::GetForProfile(profile)->driver()));
-}
-
-InstanceIDProfileService::~InstanceIDProfileService() {
-}
-
-} // namespace instance_id

Powered by Google App Engine
This is Rietveld 408576698