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

Unified Diff: web_apks/minting_example/src/org/chromium/minting/MainActivity.java

Issue 1953543002: Rename WebAPK related classes to be of the format *WebApk*.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: web_apks/minting_example/src/org/chromium/minting/MainActivity.java
diff --git a/web_apks/minting_example/src/org/chromium/minting/MainActivity.java b/web_apks/minting_example/src/org/chromium/minting/MainActivity.java
index 283bead69c6b76062d25d93d03dc6612a69ca80d..319eec77d37c9d618dd1d85319114fdbc61304df 100644
--- a/web_apks/minting_example/src/org/chromium/minting/MainActivity.java
+++ b/web_apks/minting_example/src/org/chromium/minting/MainActivity.java
@@ -7,7 +7,6 @@ package org.chromium.minting;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
-import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
@@ -16,11 +15,9 @@ import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Base64;
import android.util.Log;
-import android.view.View;
-import android.view.View.OnClickListener;
-import org.chromium.minting.lib.common.WebAPKConstants;
-import org.chromium.minting.lib.common.WebAPKUtils;
+import org.chromium.minting.lib.common.WebApkConstants;
+import org.chromium.minting.lib.common.WebApkUtils;
import java.io.ByteArrayOutputStream;
@@ -67,7 +64,7 @@ public class MainActivity extends Activity {
}
scope = bundle.getString(META_DATA_SCOPE);
- webappId = WebAPKConstants.WEB_APK_ID_PREFIX + packageName;
+ webappId = WebApkConstants.WEB_APK_ID_PREFIX + packageName;
mac = bundle.getString(META_DATA_MAC);
name = (String) getPackageManager().getApplicationLabel(appInfo);
// TODO(hanxi): find a neat solution to avoid encode/decode each time launch the
@@ -83,7 +80,7 @@ public class MainActivity extends Activity {
}
Intent newIntent = new Intent();
- newIntent.setComponent(new ComponentName(WebAPKUtils.getHostBrowserPackageName(this),
+ newIntent.setComponent(new ComponentName(WebApkUtils.getHostBrowserPackageName(this),
"org.chromium.chrome.browser.webapps.WebappLauncherActivity"));
newIntent.putExtra(EXTRA_ID, webappId);
newIntent.putExtra(EXTRA_NAME, name);

Powered by Google App Engine
This is Rietveld 408576698