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

Unified Diff: Application/src/main/java/org/chromium/customtabsclient/MainActivity.java

Issue 2438103002: Add postMessage APIs to the support lib (Closed)
Patch Set: lizeb@ comments Created 4 years, 1 month 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: Application/src/main/java/org/chromium/customtabsclient/MainActivity.java
diff --git a/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java b/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java
index a74b2e23523e065706c06c814fb8a5b941f41b04..4d8aa6fc3f850c75aacd91031ca21b9cf7e7b1d8 100644
--- a/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java
+++ b/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java
@@ -18,6 +18,7 @@ import android.app.Activity;
import android.app.ActivityOptions;
import android.app.PendingIntent;
import android.content.Intent;
+import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.Bitmap;
@@ -168,6 +169,12 @@ public class MainActivity extends Activity implements OnClickListener, ServiceCo
if (viewId == R.id.connect_button) {
bindCustomTabsService();
} else if (viewId == R.id.warmup_button) {
+ try {
+ PackageInfo info = getPackageManager().getPackageInfo("com.twitter.android", 0);
Benoit L 2016/11/09 10:11:00 You probably want to remove these lines. :-)
Yusuf 2016/11/09 18:29:21 ha!
+ android.util.Log.e("Yusuf",info.signatures[0].toString());
+ } catch (PackageManager.NameNotFoundException e) {
+ //do nothing;
+ }
boolean success = false;
if (mClient != null) success = mClient.warmup(0);
if (!success) mWarmupButton.setEnabled(false);

Powered by Google App Engine
This is Rietveld 408576698