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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

Issue 2554003003: Log NTP launch time until user can do a search. (Closed)
Patch Set: Address review comments from asvitkine. Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 package org.chromium.chrome.browser.tab; 5 package org.chromium.chrome.browser.tab;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.Application; 9 import android.app.Application;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 * @return The application {@link Context} associated with this tab. 838 * @return The application {@link Context} associated with this tab.
839 */ 839 */
840 protected Context getApplicationContext() { 840 protected Context getApplicationContext() {
841 return mThemedApplicationContext.getApplicationContext(); 841 return mThemedApplicationContext.getApplicationContext();
842 } 842 }
843 843
844 /** 844 /**
845 * @return {@link ChromeActivity} that currently contains this {@link Tab} i n its 845 * @return {@link ChromeActivity} that currently contains this {@link Tab} i n its
846 * {@link TabModel}. 846 * {@link TabModel}.
847 */ 847 */
848 ChromeActivity getActivity() { 848 public ChromeActivity getActivity() {
849 if (getWindowAndroid() == null) return null; 849 if (getWindowAndroid() == null) return null;
850 Activity activity = WindowAndroid.activityFromContext( 850 Activity activity = WindowAndroid.activityFromContext(
851 getWindowAndroid().getContext().get()); 851 getWindowAndroid().getContext().get());
852 if (activity instanceof ChromeActivity) return (ChromeActivity) activity ; 852 if (activity instanceof ChromeActivity) return (ChromeActivity) activity ;
853 return null; 853 return null;
854 } 854 }
855 855
856 /** 856 /**
857 * @return {@link TabModelSelector} that currently hosts the {@link TabModel } for this 857 * @return {@link TabModelSelector} that currently hosts the {@link TabModel } for this
858 * {@link Tab}. 858 * {@link Tab}.
(...skipping 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after
3199 private native void nativeLoadOriginalImage(long nativeTabAndroid); 3199 private native void nativeLoadOriginalImage(long nativeTabAndroid);
3200 private native long nativeGetBookmarkId(long nativeTabAndroid, boolean onlyE ditable); 3200 private native long nativeGetBookmarkId(long nativeTabAndroid, boolean onlyE ditable);
3201 private native boolean nativeIsOfflinePage(long nativeTabAndroid); 3201 private native boolean nativeIsOfflinePage(long nativeTabAndroid);
3202 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid); 3202 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid);
3203 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id, 3203 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id,
3204 InterceptNavigationDelegate delegate); 3204 InterceptNavigationDelegate delegate);
3205 private native void nativeAttachToTabContentManager(long nativeTabAndroid, 3205 private native void nativeAttachToTabContentManager(long nativeTabAndroid,
3206 TabContentManager tabContentManager); 3206 TabContentManager tabContentManager);
3207 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url); 3207 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
3208 } 3208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698