OLD | NEW |
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 Loading... |
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 |
OLD | NEW |