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

Unified Diff: chrome/browser/android/webapk/webapk_installer.cc

Issue 2882243002: Remove ChromeWebApkHost::GetGooglePlayInstallState() check from WebApkInstaller (Closed)
Patch Set: Created 3 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: chrome/browser/android/webapk/webapk_installer.cc
diff --git a/chrome/browser/android/webapk/webapk_installer.cc b/chrome/browser/android/webapk/webapk_installer.cc
index 15b1ddd1cc2778c7ed0346f356d2366f5d76a1eb..06666496e253ce68f9c469cc6570f848d50336e7 100644
--- a/chrome/browser/android/webapk/webapk_installer.cc
+++ b/chrome/browser/android/webapk/webapk_installer.cc
@@ -269,11 +269,6 @@ bool WebApkInstaller::Register(JNIEnv* env) {
return RegisterNativesImpl(env);
}
-bool WebApkInstaller::CanInstallWebApks() {
- return ChromeWebApkHost::GetGooglePlayInstallState() ==
- GooglePlayInstallState::SUPPORTED;
-}
-
void WebApkInstaller::InstallOrUpdateWebApk(const std::string& package_name,
int version,
const std::string& token) {
@@ -414,11 +409,6 @@ void WebApkInstaller::OnURLFetchComplete(const net::URLFetcher* source) {
return;
}
- if (!CanInstallWebApks()) {
- OnResult(WebApkInstallResult::FAILURE);
- return;
- }
-
int version = 1;
base::StringToInt(response->version(), &version);
InstallOrUpdateWebApk(response->package_name(), version, token);
« no previous file with comments | « chrome/browser/android/webapk/webapk_installer.h ('k') | chrome/browser/android/webapk/webapk_installer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698