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

Side by Side Diff: components/gcm_driver/gcm_driver_android.cc

Issue 1830983002: Implement InstanceIDAndroid using InstanceIDWithSubtype.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid1subtype
Patch Set: Make mNativeInstanceIDAndroid non-final Created 4 years, 8 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
« no previous file with comments | « components/gcm_driver/gcm_driver_android.h ('k') | components/gcm_driver/instance_id/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/gcm_driver/gcm_driver_android.h" 5 #include "components/gcm_driver/gcm_driver_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/context_utils.h" 10 #include "base/android/context_utils.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 message_byte_size += message.raw_data.size(); 105 message_byte_size += message.raw_data.size();
106 } 106 }
107 107
108 recorder_.RecordDataMessageReceived(app_id, message_byte_size); 108 recorder_.RecordDataMessageReceived(app_id, message_byte_size);
109 109
110 DispatchMessage(app_id, message); 110 DispatchMessage(app_id, message);
111 } 111 }
112 112
113 // static 113 // static
114 bool GCMDriverAndroid::RegisterBindings(JNIEnv* env) { 114 bool GCMDriverAndroid::RegisterJni(JNIEnv* env) {
115 return RegisterNativesImpl(env); 115 return RegisterNativesImpl(env);
116 } 116 }
117 117
118 void GCMDriverAndroid::OnSignedIn() { 118 void GCMDriverAndroid::OnSignedIn() {
119 } 119 }
120 120
121 void GCMDriverAndroid::OnSignedOut() { 121 void GCMDriverAndroid::OnSignedOut() {
122 } 122 }
123 123
124 void GCMDriverAndroid::AddConnectionObserver(GCMConnectionObserver* observer) { 124 void GCMDriverAndroid::AddConnectionObserver(GCMConnectionObserver* observer) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 NOTIMPLEMENTED(); 259 NOTIMPLEMENTED();
260 } 260 }
261 261
262 void GCMDriverAndroid::RecordDecryptionFailure( 262 void GCMDriverAndroid::RecordDecryptionFailure(
263 const std::string& app_id, 263 const std::string& app_id,
264 GCMEncryptionProvider::DecryptionResult result) { 264 GCMEncryptionProvider::DecryptionResult result) {
265 recorder_.RecordDecryptionFailure(app_id, result); 265 recorder_.RecordDecryptionFailure(app_id, result);
266 } 266 }
267 267
268 } // namespace gcm 268 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_android.h ('k') | components/gcm_driver/instance_id/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698