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

Side by Side Diff: chrome/browser/extensions/api/instance_id/instance_id_api.cc

Issue 2657823005: Move //c/b/services/gcm/ to //c/b/gcm/ (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/instance_id/instance_id_api.h" 5 #include "chrome/browser/extensions/api/instance_id/instance_id_api.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "chrome/browser/gcm/instance_id/instance_id_profile_service.h"
11 #include "chrome/browser/gcm/instance_id/instance_id_profile_service_factory.h"
10 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/services/gcm/instance_id/instance_id_profile_service.h"
12 #include "chrome/browser/services/gcm/instance_id/instance_id_profile_service_fa ctory.h"
13 #include "chrome/common/extensions/api/instance_id.h" 13 #include "chrome/common/extensions/api/instance_id.h"
14 #include "components/gcm_driver/instance_id/instance_id_driver.h" 14 #include "components/gcm_driver/instance_id/instance_id_driver.h"
15 #include "extensions/common/extension.h" 15 #include "extensions/common/extension.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 namespace { 19 namespace {
20 20
21 // Error messages. 21 // Error messages.
22 const char kInvalidParameter[] = "Function was called with invalid parameters."; 22 const char kInvalidParameter[] = "Function was called with invalid parameters.";
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 void InstanceIDDeleteIDFunction::DeleteIDCompleted( 185 void InstanceIDDeleteIDFunction::DeleteIDCompleted(
186 instance_id::InstanceID::Result result) { 186 instance_id::InstanceID::Result result) {
187 if (result == instance_id::InstanceID::SUCCESS) 187 if (result == instance_id::InstanceID::SUCCESS)
188 Respond(NoArguments()); 188 Respond(NoArguments());
189 else 189 else
190 Respond(Error(InstanceIDResultToError(result))); 190 Respond(Error(InstanceIDResultToError(result)));
191 } 191 }
192 192
193 } // namespace extensions 193 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/gcm/gcm_apitest.cc ('k') | chrome/browser/extensions/api/instance_id/instance_id_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698