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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDirectoryManager.java

Issue 2652523002: [Android Webapps] Remove checking for live WebappManagedActivities on L+ (Closed)
Patch Set: Merge branch 'master' into webapp_directory_manager Created 3 years, 5 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/webapps/WebappDirectoryManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDirectoryManager.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDirectoryManager.java
index fd0edbdea39b2ef608f32e503b50d6f663ea9e56..a811afa4918e42d2b33e6f504c6c7b9f95db5b45 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDirectoryManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDirectoryManager.java
@@ -7,7 +7,6 @@ package org.chromium.chrome.browser.webapps;
import android.annotation.TargetApi;
import android.app.ActivityManager;
import android.app.ActivityManager.AppTask;
-import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
@@ -110,21 +109,6 @@ public class WebappDirectoryManager {
if (data != null && TextUtils.equals(WebappActivity.WEBAPP_SCHEME, data.getScheme())) {
liveWebapps.add(data.getHost());
}
-
- // WebappManagedActivities have titles from "WebappActivity0" through "WebappActivity9".
- ComponentName component = intent.getComponent();
- if (component != null) {
- String fullClassName = component.getClassName();
- int lastPeriodIndex = fullClassName.lastIndexOf(".");
- if (lastPeriodIndex != -1) {
- String className = fullClassName.substring(lastPeriodIndex + 1);
- if (className.startsWith(WEBAPP_DIRECTORY_NAME)
- && className.length() > WEBAPP_DIRECTORY_NAME.length()) {
- String activityIndex = className.substring(WEBAPP_DIRECTORY_NAME.length());
- liveWebapps.add(activityIndex);
- }
- }
- }
}
if (webappBaseDirectory != null) {
« 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