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

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: nit fixes based on review. 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
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ce6aad711a0e945c224843875850ce92e11fb374 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() : nullptr),
web_contents->GetBrowserContext()->IsOffTheRecord(),
web_contents->GetJavaWebContents().obj(),
parent_tab_id);
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698