Index: content/shell/browser/shell_android.cc |
diff --git a/content/shell/browser/shell_android.cc b/content/shell/browser/shell_android.cc |
index d18bd5df1b857d88d2324d1e650f5875c4ed9d16..4033b479a9580d131624322bc62b69e9f6f27254 100644 |
--- a/content/shell/browser/shell_android.cc |
+++ b/content/shell/browser/shell_android.cc |
@@ -36,6 +36,10 @@ void Shell::PlatformCleanUp() { |
} |
void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ if (java_object_.is_null()) |
+ return; |
+ Java_Shell_enableUiControl(env, java_object_.obj(), control, is_enabled); |
} |
void Shell::PlatformSetAddressBarURL(const GURL& url) { |