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

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

Issue 2951133003: Clean up tinted ImageView subclasses (Closed)
Patch Set: Comments Created 3 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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; 5 package org.chromium.chrome.browser;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.app.SearchManager; 10 import android.app.SearchManager;
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 WebApkUma.recordWebApkOpenAttempt(WebApkUma.WEBAPK_OPEN_ACTI VITY_NOT_FOUND); 1940 WebApkUma.recordWebApkOpenAttempt(WebApkUma.WEBAPK_OPEN_ACTI VITY_NOT_FOUND);
1941 launchFailed = true; 1941 launchFailed = true;
1942 } 1942 }
1943 } else { 1943 } else {
1944 WebApkUma.recordWebApkOpenAttempt(WebApkUma.WEBAPK_OPEN_NO_LAUNC H_INTENT); 1944 WebApkUma.recordWebApkOpenAttempt(WebApkUma.WEBAPK_OPEN_NO_LAUNC H_INTENT);
1945 launchFailed = true; 1945 launchFailed = true;
1946 } 1946 }
1947 if (launchFailed) { 1947 if (launchFailed) {
1948 Toast.makeText(context, R.string.open_webapk_failed, Toast.LENGT H_SHORT).show(); 1948 Toast.makeText(context, R.string.open_webapk_failed, Toast.LENGT H_SHORT).show();
1949 } 1949 }
1950 } else if (id == R.id.request_desktop_site_id) { 1950 } else if (id == R.id.request_desktop_site_id || id == R.id.request_desk top_site_check_id) {
1951 final boolean reloadOnChange = !currentTab.isNativePage(); 1951 final boolean reloadOnChange = !currentTab.isNativePage();
1952 final boolean usingDesktopUserAgent = currentTab.getUseDesktopUserAg ent(); 1952 final boolean usingDesktopUserAgent = currentTab.getUseDesktopUserAg ent();
1953 currentTab.setUseDesktopUserAgent(!usingDesktopUserAgent, reloadOnCh ange); 1953 currentTab.setUseDesktopUserAgent(!usingDesktopUserAgent, reloadOnCh ange);
1954 RecordUserAction.record("MobileMenuRequestDesktopSite"); 1954 RecordUserAction.record("MobileMenuRequestDesktopSite");
1955 } else if (id == R.id.reader_mode_prefs_id) { 1955 } else if (id == R.id.reader_mode_prefs_id) {
1956 if (currentTab.getWebContents() != null) { 1956 if (currentTab.getWebContents() != null) {
1957 RecordUserAction.record("DomDistiller_DistilledPagePrefsOpened") ; 1957 RecordUserAction.record("DomDistiller_DistilledPagePrefsOpened") ;
1958 AlertDialog.Builder builder = 1958 AlertDialog.Builder builder =
1959 new AlertDialog.Builder(this, R.style.AlertDialogTheme); 1959 new AlertDialog.Builder(this, R.style.AlertDialogTheme);
1960 builder.setView(DistilledPagePrefsView.create(this)); 1960 builder.setView(DistilledPagePrefsView.create(this));
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 return false; 2227 return false;
2228 } 2228 }
2229 2229
2230 /** 2230 /**
2231 * @return the reference pool for this activity. 2231 * @return the reference pool for this activity.
2232 */ 2232 */
2233 public DiscardableReferencePool getReferencePool() { 2233 public DiscardableReferencePool getReferencePool() {
2234 return mReferencePool; 2234 return mReferencePool;
2235 } 2235 }
2236 } 2236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698