Index: chrome/browser/android/tab_state.h |
diff --git a/chrome/browser/android/tab_state.h b/chrome/browser/android/tab_state.h |
index 3f5f7361724556890b7f8c3dc0b13cdd122dd76d..2b0182a5dba914b583761146c7af5057caad2cd7 100644 |
--- a/chrome/browser/android/tab_state.h |
+++ b/chrome/browser/android/tab_state.h |
@@ -51,12 +51,12 @@ class WebContentsState { |
bool initially_hidden); |
// Restores a WebContents from the passed in state. |
- static jobject RestoreContentsFromByteBuffer( |
- JNIEnv* env, |
- jclass clazz, |
- jobject state, |
- jint saved_state_version, |
- jboolean initially_hidden); |
+ static base::android::ScopedJavaLocalRef<jobject> |
+ RestoreContentsFromByteBuffer(JNIEnv* env, |
+ jclass clazz, |
+ jobject state, |
+ jint saved_state_version, |
+ jboolean initially_hidden); |
// Synthesizes a stub, single-navigation state for a tab that will be loaded |
// lazily. |