| 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 c4edb3aabc1531e34016a09c93e6cf21469dade7..c0da6985393023b98235f4057d2217761d6171a1 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.
|
|
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_FACTORY_ANDROID_H_
|
|
|
| #include <jni.h>
|
| +#include "base/android/scoped_java_ref.h"
|
|
|
| namespace invalidation {
|
|
|
| @@ -13,8 +14,10 @@ namespace invalidation {
|
| // InvalidationServiceFactory.
|
| class InvalidationServiceFactoryAndroid {
|
| public:
|
| - static jobject GetForProfile(JNIEnv* env, jclass clazz, jobject j_profile);
|
| - static jobject GetForTest(JNIEnv* env, jclass clazz, jobject j_context);
|
| + static base::android::ScopedJavaLocalRef<jobject>
|
| + GetForProfile(JNIEnv* env, jclass clazz, jobject j_profile);
|
| + static base::android::ScopedJavaLocalRef<jobject>
|
| + GetForTest(JNIEnv* env, jclass clazz, jobject j_context);
|
| static bool Register(JNIEnv* env);
|
| };
|
|
|
|
|