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

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

Issue 1326593006: Add the Physical Web to Chrome on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check an unchecked cast Created 5 years, 2 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 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 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.SharedPreferences; 10 import android.content.SharedPreferences;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator; 56 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator;
57 import org.chromium.chrome.browser.metrics.UmaUtils; 57 import org.chromium.chrome.browser.metrics.UmaUtils;
58 import org.chromium.chrome.browser.metrics.VariationsSession; 58 import org.chromium.chrome.browser.metrics.VariationsSession;
59 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils; 59 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils;
60 import org.chromium.chrome.browser.net.qualityprovider.ExternalEstimateProviderA ndroid; 60 import org.chromium.chrome.browser.net.qualityprovider.ExternalEstimateProviderA ndroid;
61 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; 61 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings;
62 import org.chromium.chrome.browser.notifications.NotificationUIManager; 62 import org.chromium.chrome.browser.notifications.NotificationUIManager;
63 import org.chromium.chrome.browser.omaha.RequestGenerator; 63 import org.chromium.chrome.browser.omaha.RequestGenerator;
64 import org.chromium.chrome.browser.omaha.UpdateInfoBarHelper; 64 import org.chromium.chrome.browser.omaha.UpdateInfoBarHelper;
65 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza tions; 65 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza tions;
66 import org.chromium.chrome.browser.physicalweb.PhysicalWebBleClient;
66 import org.chromium.chrome.browser.policy.PolicyAuditor; 67 import org.chromium.chrome.browser.policy.PolicyAuditor;
67 import org.chromium.chrome.browser.preferences.AccessibilityPreferences; 68 import org.chromium.chrome.browser.preferences.AccessibilityPreferences;
68 import org.chromium.chrome.browser.preferences.LocationSettings; 69 import org.chromium.chrome.browser.preferences.LocationSettings;
69 import org.chromium.chrome.browser.preferences.PrefServiceBridge; 70 import org.chromium.chrome.browser.preferences.PrefServiceBridge;
70 import org.chromium.chrome.browser.preferences.Preferences; 71 import org.chromium.chrome.browser.preferences.Preferences;
71 import org.chromium.chrome.browser.preferences.PreferencesLauncher; 72 import org.chromium.chrome.browser.preferences.PreferencesLauncher;
72 import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences; 73 import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences;
73 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences ; 74 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences ;
74 import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferences; 75 import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferences;
75 import org.chromium.chrome.browser.preferences.website.SingleWebsitePreferences; 76 import org.chromium.chrome.browser.preferences.website.SingleWebsitePreferences;
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 692
692 /** 693 /**
693 * @return An instance of {@link CustomTabsConnection}. Should not be called 694 * @return An instance of {@link CustomTabsConnection}. Should not be called
694 * outside of {@link CustomTabsConnection#getInstance()}. 695 * outside of {@link CustomTabsConnection#getInstance()}.
695 */ 696 */
696 public CustomTabsConnection createCustomTabsConnection() { 697 public CustomTabsConnection createCustomTabsConnection() {
697 return new CustomTabsConnection(this); 698 return new CustomTabsConnection(this);
698 } 699 }
699 700
700 /** 701 /**
702 * @return A new PhysicalWebBleClient instance.
703 */
704 public PhysicalWebBleClient createPhysicalWebBleClient() {
705 return new PhysicalWebBleClient();
706 }
707
708 /**
701 * @return Instance of printing controller that is shared among all chromium activities. May 709 * @return Instance of printing controller that is shared among all chromium activities. May
702 * return null if printing is not supported on the platform. 710 * return null if printing is not supported on the platform.
703 */ 711 */
704 public PrintingController getPrintingController() { 712 public PrintingController getPrintingController() {
705 return mPrintingController; 713 return mPrintingController;
706 } 714 }
707 715
708 /** 716 /**
709 * @return The UpdateInfoBarHelper used to inform the user about updates. 717 * @return The UpdateInfoBarHelper used to inform the user about updates.
710 */ 718 */
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 */ 900 */
893 private void updatePasswordEchoState() { 901 private void updatePasswordEchoState() {
894 boolean systemEnabled = Settings.System.getInt( 902 boolean systemEnabled = Settings.System.getInt(
895 getApplicationContext().getContentResolver(), 903 getApplicationContext().getContentResolver(),
896 Settings.System.TEXT_SHOW_PASSWORD, 1) == 1; 904 Settings.System.TEXT_SHOW_PASSWORD, 1) == 1;
897 if (PrefServiceBridge.getInstance().getPasswordEchoEnabled() == systemEn abled) return; 905 if (PrefServiceBridge.getInstance().getPasswordEchoEnabled() == systemEn abled) return;
898 906
899 PrefServiceBridge.getInstance().setPasswordEchoEnabled(systemEnabled); 907 PrefServiceBridge.getInstance().setPasswordEchoEnabled(systemEnabled);
900 } 908 }
901 } 909 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698