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

Unified Diff: chrome/android/java_staging/src/org/chromium/chrome/browser/preferences/PreferencesStaging.java

Issue 1206673003: Merge java_staging/src into java/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java_staging/src/org/chromium/chrome/browser/preferences/PreferencesStaging.java
diff --git a/chrome/android/java_staging/src/org/chromium/chrome/browser/preferences/PreferencesStaging.java b/chrome/android/java_staging/src/org/chromium/chrome/browser/preferences/PreferencesStaging.java
deleted file mode 100644
index 7c8fa9ec090e624233118a87ee93dfdeedc61c93..0000000000000000000000000000000000000000
--- a/chrome/android/java_staging/src/org/chromium/chrome/browser/preferences/PreferencesStaging.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser.preferences;
-
-import org.chromium.base.library_loader.ProcessInitException;
-import org.chromium.chrome.browser.ChromiumApplication;
-import org.chromium.chrome.browser.EmbedContentViewActivity;
-import org.chromium.chrome.browser.contextualsearch.ContextualSearchFieldTrial;
-import org.chromium.chrome.browser.contextualsearch.ContextualSearchUma;
-import org.chromium.chrome.browser.precache.PrecacheLauncher;
-import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferencesManager;
-
-/**
- * The staging bits of the Chrome settings activity.
- *
- * TODO(newt): merge this with Preferences after upstreaming.
- */
-public class PreferencesStaging extends Preferences {
-
- @Override
- protected void startBrowserProcessSync() throws ProcessInitException {
- ((ChromiumApplication) getApplication()).startBrowserProcessesAndLoadLibrariesSync(true);
- }
-
- @Override
- protected String getTopLevelFragmentName() {
- return MainPreferences.class.getName();
- }
-
- @Override
- public void showUrl(int titleResId, int urlResId) {
- EmbedContentViewActivity.show(this, titleResId, urlResId);
- }
-
- @Override
- public void logContextualSearchToggled(boolean newValue) {
- ContextualSearchUma.logPreferenceChange(newValue);
- }
-
- @Override
- public boolean isContextualSearchEnabled() {
- return ContextualSearchFieldTrial.isEnabled(this);
- }
-
- @Override
- public void updatePrecachingEnabled() {
- PrecacheLauncher.updatePrecachingEnabled(PrivacyPreferencesManager.getInstance(this), this);
- }
-
- @Override
- protected void onPause() {
- super.onPause();
- ChromiumApplication.flushPersistentData();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698