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

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

Issue 2601273003: Send users to Physical WebUI instead of Activity (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebDiagnosticsPage.java ('k') | no next file » | 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/preferences/privacy/PhysicalWebPreferenceFragment.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java
index f6851a379b3bad10e9165e3e7a51a3df9deef1df..160ab89be9b4f230ad58c47b8313e56e376b716f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java
@@ -5,8 +5,6 @@
package org.chromium.chrome.browser.preferences.privacy;
import android.Manifest;
-import android.content.Context;
-import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
@@ -17,6 +15,7 @@ import android.preference.PreferenceFragment;
import org.chromium.base.Log;
import org.chromium.chrome.R;
+import org.chromium.chrome.browser.IntentHandler;
import org.chromium.chrome.browser.physicalweb.ListUrlsActivity;
import org.chromium.chrome.browser.physicalweb.PhysicalWeb;
import org.chromium.chrome.browser.physicalweb.PhysicalWebUma;
@@ -104,15 +103,11 @@ public class PhysicalWebPreferenceFragment extends PreferenceFragment {
physicalWebLaunch.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
- startActivity(createListUrlsIntent(getActivity()));
+ PhysicalWebUma.onActivityReferral(ListUrlsActivity.PREFERENCE_REFERER);
+ IntentHandler.startChromeLauncherActivityForTrustedIntent(
+ PhysicalWeb.createListUrlsIntent());
return true;
}
});
}
-
- private static Intent createListUrlsIntent(Context context) {
- Intent intent = new Intent(context, ListUrlsActivity.class);
- intent.putExtra(ListUrlsActivity.REFERER_KEY, ListUrlsActivity.PREFERENCE_REFERER);
- return intent;
- }
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebDiagnosticsPage.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698