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

Unified Diff: chrome/browser/invalidation/invalidation_service_factory_android.h

Issue 2231923002: Make GetApplicationContext return a JavaRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix not-currently-compiled unit test Created 4 years, 4 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/invalidation/invalidation_service_factory_android.h
diff --git a/chrome/browser/invalidation/invalidation_service_factory_android.h b/chrome/browser/invalidation/invalidation_service_factory_android.h
index ed3d9aeec0d10d877faa7b844024c76e9a397287..bfe44eb1917e5b67a034cbb3cf0ba5edf8705119 100644
--- a/chrome/browser/invalidation/invalidation_service_factory_android.h
+++ b/chrome/browser/invalidation/invalidation_service_factory_android.h
@@ -1,4 +1,4 @@
-#// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2014 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.
@@ -14,11 +14,11 @@ namespace invalidation {
// InvalidationServiceFactory.
class InvalidationServiceFactoryAndroid {
public:
- static base::android::ScopedJavaLocalRef<jobject>
- GetForProfile(JNIEnv* env, jclass clazz, jobject j_profile);
+ static base::android::ScopedJavaLocalRef<jobject> GetForProfile(
+ const base::android::JavaRef<jobject>& j_profile);
- static base::android::ScopedJavaLocalRef<jobject>
- GetForTest(JNIEnv* env, jclass clazz, jobject j_context);
+ static base::android::ScopedJavaLocalRef<jobject> GetForTest(
+ const base::android::JavaRef<jobject>& j_context);
static bool Register(JNIEnv* env);
};

Powered by Google App Engine
This is Rietveld 408576698