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

Unified Diff: chrome/browser/ui/android/tab_model/tab_model_jni_bridge.cc

Issue 2088443003: Shortcut ctrl+shift+T added on android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UMA added correctly, nit changes. Created 4 years, 5 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/ui/android/tab_model/tab_model_jni_bridge.cc
diff --git a/chrome/browser/ui/android/tab_model/tab_model_jni_bridge.cc b/chrome/browser/ui/android/tab_model/tab_model_jni_bridge.cc
index 19dcfc582d63b85778cae1c9766b370993c56ed3..e42c0756b5e9f33ba5ed7e1cf5c9db1c9e6fadab 100644
--- a/chrome/browser/ui/android/tab_model/tab_model_jni_bridge.cc
+++ b/chrome/browser/ui/android/tab_model/tab_model_jni_bridge.cc
@@ -87,7 +87,7 @@ void TabModelJniBridge::CreateTab(TabAndroid* parent,
JNIEnv* env = AttachCurrentThread();
Java_TabModelJniBridge_createTabWithWebContents(
env, java_object_.get(env).obj(),
- parent->GetJavaObject().obj(),
+ (parent ? parent->GetJavaObject().obj() : NULL),
web_contents->GetBrowserContext()->IsOffTheRecord(),
web_contents->GetJavaWebContents().obj(),
parent_tab_id);

Powered by Google App Engine
This is Rietveld 408576698