| OLD | NEW |
| 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 this, SingleWebsitePreferences.class.getName()); | 410 this, SingleWebsitePreferences.class.getName()); |
| 411 intent.putExtra(Preferences.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fragmentArgs)
; | 411 intent.putExtra(Preferences.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fragmentArgs)
; |
| 412 startActivity(intent); | 412 startActivity(intent); |
| 413 } | 413 } |
| 414 | 414 |
| 415 @Override | 415 @Override |
| 416 protected void initializeLibraryDependencies() { | 416 protected void initializeLibraryDependencies() { |
| 417 // The ResourceExtractor is only needed by the browser process, but this
will have no | 417 // The ResourceExtractor is only needed by the browser process, but this
will have no |
| 418 // impact on the renderer process construction. | 418 // impact on the renderer process construction. |
| 419 ResourceBundle.initializeLocalePaks(this, R.array.locale_paks); | 419 ResourceBundle.initializeLocalePaks(this, R.array.locale_paks); |
| 420 if (!BuildInfo.hasApkSplits(this)) { | 420 if (!BuildInfo.hasLanguageApkSplits(this)) { |
| 421 ResourceExtractor.setResourcesToExtract(ResourceBundle.getActiveLoca
leResources()); | 421 ResourceExtractor.setResourcesToExtract(ResourceBundle.getActiveLoca
leResources()); |
| 422 } | 422 } |
| 423 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, t
his); | 423 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, t
his); |
| 424 } | 424 } |
| 425 | 425 |
| 426 /** | 426 /** |
| 427 * The host activity should call this after the native library has loaded to
ensure classes | 427 * The host activity should call this after the native library has loaded to
ensure classes |
| 428 * shared by Activities in the same process are properly initialized. | 428 * shared by Activities in the same process are properly initialized. |
| 429 */ | 429 */ |
| 430 public void initializeSharedClasses() { | 430 public void initializeSharedClasses() { |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 */ | 859 */ |
| 860 private void updatePasswordEchoState() { | 860 private void updatePasswordEchoState() { |
| 861 boolean systemEnabled = Settings.System.getInt( | 861 boolean systemEnabled = Settings.System.getInt( |
| 862 getApplicationContext().getContentResolver(), | 862 getApplicationContext().getContentResolver(), |
| 863 Settings.System.TEXT_SHOW_PASSWORD, 1) == 1; | 863 Settings.System.TEXT_SHOW_PASSWORD, 1) == 1; |
| 864 if (PrefServiceBridge.getInstance().getPasswordEchoEnabled() == systemEn
abled) return; | 864 if (PrefServiceBridge.getInstance().getPasswordEchoEnabled() == systemEn
abled) return; |
| 865 | 865 |
| 866 PrefServiceBridge.getInstance().setPasswordEchoEnabled(systemEnabled); | 866 PrefServiceBridge.getInstance().setPasswordEchoEnabled(systemEnabled); |
| 867 } | 867 } |
| 868 } | 868 } |
| OLD | NEW |