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

Side by Side Diff: chrome/browser/android/shortcut_helper.cc

Issue 23020009: TabBase: Add ContentView/NativePage ownership (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase! Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/android/testshell/testshell_tab.cc ('k') | chrome/browser/android/tab_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/shortcut_helper.h" 5 #include "chrome/browser/android/shortcut_helper.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 b_value, 162 b_value,
163 is_webapp_capable); 163 is_webapp_capable);
164 } 164 }
165 165
166 // Adds a shortcut to the current URL to the Android home screen, firing 166 // Adds a shortcut to the current URL to the Android home screen, firing
167 // background tasks to pull all the data required. 167 // background tasks to pull all the data required.
168 // Note that we don't actually care about the tab here -- we just want 168 // Note that we don't actually care about the tab here -- we just want
169 // its otherwise inaccessible WebContents. 169 // its otherwise inaccessible WebContents.
170 static void AddShortcut(JNIEnv* env, jclass clazz, jint tab_android_ptr) { 170 static void AddShortcut(JNIEnv* env, jclass clazz, jint tab_android_ptr) {
171 TabAndroid* tab = reinterpret_cast<TabAndroid*>(tab_android_ptr); 171 TabAndroid* tab = reinterpret_cast<TabAndroid*>(tab_android_ptr);
172 ShortcutHelper::AddShortcut(tab->GetWebContents()); 172 ShortcutHelper::AddShortcut(tab->web_contents());
173 } 173 }
OLDNEW
« no previous file with comments | « chrome/android/testshell/testshell_tab.cc ('k') | chrome/browser/android/tab_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698