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

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

Issue 2378853002: Fix crash when clicking BROWSE THE PHYSICAL WEB (Closed)
Patch Set: Created 4 years, 3 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 | 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/physicalweb/PhysicalWebDiagnosticsPage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebDiagnosticsPage.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebDiagnosticsPage.java
index 32a7d7a12b421d8a5583fcf9a2ccba67436b8f2a..4ad71134d27edbe753a11e4e73eafa1ebc7b40e4 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebDiagnosticsPage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebDiagnosticsPage.java
@@ -47,7 +47,7 @@ public class PhysicalWebDiagnosticsPage extends BasicNativePage {
}
@Override
- protected void initialize(Activity activity, Tab tab) {
+ protected void initialize(final Activity activity, Tab tab) {
Resources resources = activity.getResources();
mSuccessColor = colorToHexValue(ApiCompatibilityUtils.getColor(resources,
R.color.physical_web_diags_success_color));
@@ -63,7 +63,7 @@ public class PhysicalWebDiagnosticsPage extends BasicNativePage {
mLaunchButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- ContextUtils.getApplicationContext().startActivity(createListUrlsIntent());
+ activity.startActivity(createListUrlsIntent());
}
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698