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

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

Issue 2110543004: Move JNI bindings for url_formatter from chrome to //components/url_formatter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/src/org/chromium/chrome/browser/preferences/HomepageEditor.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/HomepageEditor.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/HomepageEditor.java
index 730e0060a35cd9a9ab6322a6bc907e2fe43d3d2e..e3766702657ad03c5b715906698726319535bfa1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/HomepageEditor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/HomepageEditor.java
@@ -17,8 +17,8 @@ import android.widget.EditText;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.partnercustomizations.HomepageManager;
import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomizations;
-import org.chromium.chrome.browser.util.UrlUtilities;
import org.chromium.chrome.browser.widget.FloatLabelLayout;
+import org.chromium.components.url_formatter.UrlFormatter;
/**
* Provides the Java-UI for editing the homepage preference.
@@ -82,8 +82,8 @@ public class HomepageEditor extends Fragment implements TextWatcher {
mSaveButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- mHomepageManager.setPrefHomepageCustomUri(UrlUtilities.fixupUrl(
- mHomepageUrlEdit.getText().toString()));
+ mHomepageManager.setPrefHomepageCustomUri(
+ UrlFormatter.fixupUrl(mHomepageUrlEdit.getText().toString()));
mHomepageManager.setPrefHomepageUseDefaultUri(false);
getActivity().finish();
}
@@ -97,4 +97,4 @@ public class HomepageEditor extends Fragment implements TextWatcher {
}
});
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698