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

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

Issue 2600283002: Remove context param from PhysicalWebUma methods (Closed)
Patch Set: Created 4 years 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/physicalweb/PhysicalWebOptInActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebOptInActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebOptInActivity.java
index a8244ae945160cb62024737772fb17974b68ca89..2c80f0f711adaac640c26d020b6e81b2a2df0843 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebOptInActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebOptInActivity.java
@@ -35,7 +35,7 @@ public class PhysicalWebOptInActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.physical_web_optin);
- PhysicalWebUma.onOptInNotificationPressed(this);
+ PhysicalWebUma.onOptInNotificationPressed();
TextView description = (TextView) findViewById(R.id.physical_web_optin_description);
description.setMovementMethod(LinkMovementMethod.getInstance());
@@ -45,7 +45,7 @@ public class PhysicalWebOptInActivity extends AppCompatActivity {
declineButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- PhysicalWebUma.onOptInDeclineButtonPressed(PhysicalWebOptInActivity.this);
+ PhysicalWebUma.onOptInDeclineButtonPressed();
PrivacyPreferencesManager.getInstance().setPhysicalWebEnabled(false);
finish();
}
@@ -55,7 +55,7 @@ public class PhysicalWebOptInActivity extends AppCompatActivity {
enableButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- PhysicalWebUma.onOptInEnableButtonPressed(PhysicalWebOptInActivity.this);
+ PhysicalWebUma.onOptInEnableButtonPressed();
PrivacyPreferencesManager.getInstance().setPhysicalWebEnabled(true);
startActivity(createListUrlsIntent(PhysicalWebOptInActivity.this));
finish();

Powered by Google App Engine
This is Rietveld 408576698