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

Unified Diff: content/shell/android/shell_manager.h

Issue 1294333002: Fix wrong usages of ScopedJavaLocalRef::Release(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment to Release() explaining it should not be used to call java methods Created 5 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: content/shell/android/shell_manager.h
diff --git a/content/shell/android/shell_manager.h b/content/shell/android/shell_manager.h
index 93ccec4c900cdb427c8670324b3af86bc89ab1ca..e60b8c114559a50286a3d899380c5b6cbd2572a7 100644
--- a/content/shell/android/shell_manager.h
+++ b/content/shell/android/shell_manager.h
@@ -22,7 +22,7 @@ namespace content {
// window. This view holds the controls and content views necessary to
// render a shell window. Returns the java object representing the shell view.
// object.
-jobject CreateShellView(Shell* shell);
+base::android::ScopedJavaLocalRef<jobject> CreateShellView(Shell* shell);
// Removes a previously created shell view.
void RemoveShellView(jobject shell_view);
« no previous file with comments | « components/web_contents_delegate_android/web_contents_delegate_android.cc ('k') | content/shell/android/shell_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698