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

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

Issue 927763003: Move website settings fetching from WebsitePreferences to new WebsitePermissionFetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on tot. Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentPreferences.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java
index 346a83a51cc94c547934611b45c0a24ffd78fb6f..4ece3e328055cd0fb845f0380cb269af9337ad0e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java
@@ -23,6 +23,7 @@
import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences;
import org.chromium.chrome.browser.preferences.password.ManageSavedPasswordsPreferences;
import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferences;
+import org.chromium.chrome.browser.preferences.website.SingleWebsitePreferences;
import org.chromium.content.app.ContentApplication;
import org.chromium.content.browser.BrowserStartupController;
@@ -69,6 +70,20 @@ protected void showPasswordSettings() {
}
/**
+ * Opens the single origin settings page for the given URL.
+ *
+ * @param url The URL to show the single origin settings for. This is a complete url
+ * including scheme, domain, port, path, etc.
+ */
+ protected void showSingleOriginSettings(String url) {
Finnur 2015/03/17 09:33:23 Belated drive-by: There were no callers of this fu
Michael van Ouwerkerk 2015/04/20 15:48:24 Wow, memory fails me, I'm sorry. I'm sure I had a
+ Bundle fragmentArgs = SingleWebsitePreferences.createFragmentArgsForSite(url);
+ Intent intent = PreferencesLauncher.createIntentForSettingsPage(
+ this, SingleWebsitePreferences.class.getName());
+ intent.putExtra(Preferences.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fragmentArgs);
+ startActivity(intent);
+ }
+
+ /**
* For extending classes to carry out tasks that initialize the browser process.
* Should be called almost immediately after the native library has loaded to initialize things
* that really, really have to be set up early. Avoid putting any long tasks here.
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentPreferences.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698