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

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

Issue 2662113002: When restoring kiosk app after crash, skip app installation steps (Closed)
Patch Set: Created 3 years, 11 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/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..2e24a00a8f5451c74b3bda94c7de0b23e275617b 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 ShouldUpdateCacheOnNetworkReady() 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 false;
+ }
void OnLoadingOAuthFile() override {}
void OnInitializingTokenService() override {}
void OnInstallingApp() override {}

Powered by Google App Engine
This is Rietveld 408576698