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

Unified Diff: chrome/browser/chromeos/app_mode/app_launch_utils.cc

Issue 2669203006: When restoring kiosk app after crash, skip app installation steps. Installed apps should already be… (Closed)
Patch Set: Created 3 years, 10 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 | chrome/browser/chromeos/app_mode/startup_app_launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/app_launch_utils.cc
diff --git a/chrome/browser/chromeos/app_mode/app_launch_utils.cc b/chrome/browser/chromeos/app_mode/app_launch_utils.cc
index a60d4b232719c67aaa6a885c4d3cc121cdd8b758..0311b0faf1dd3c84ff5ec07079bd9ff3ef167c4b 100644
--- a/chrome/browser/chromeos/app_mode/app_launch_utils.cc
+++ b/chrome/browser/chromeos/app_mode/app_launch_utils.cc
@@ -43,6 +43,13 @@ class AppLaunchManager : public StartupAppLauncher::Delegate {
// See comments above. Network is assumed to be online here.
return true;
}
+ bool ShouldSkipAppInstallation() override {
+ // Given that this delegate does not reliably report whether the network is
+ // ready, avoid making app update checks - this might take a while if
+ // network is not online. Also, during crash-restart, we should continue
+ // with the same app version as the restored session.
+ return true;
+ }
void OnLoadingOAuthFile() override {}
void OnInitializingTokenService() override {}
void OnInstallingApp() override {}
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/startup_app_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698