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

Unified Diff: chrome/browser/ui/apps/chrome_app_delegate.cc

Issue 1725883002: Add KeepAliveStateObserver, add the Restart option (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KeepAlive
Patch Set: Created 4 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
Index: chrome/browser/ui/apps/chrome_app_delegate.cc
diff --git a/chrome/browser/ui/apps/chrome_app_delegate.cc b/chrome/browser/ui/apps/chrome_app_delegate.cc
index 50a0b01c1dbb2d14e7c8668b3df6499faba24329..a5f316dbd9d50c5778f20e34670ddf98694c7d6e 100644
--- a/chrome/browser/ui/apps/chrome_app_delegate.cc
+++ b/chrome/browser/ui/apps/chrome_app_delegate.cc
@@ -175,7 +175,8 @@ ChromeAppDelegate::ChromeAppDelegate(bool keep_alive)
weak_factory_(this) {
if (keep_alive) {
keep_alive_.reset(
- new ScopedKeepAlive(keep_alive::Origin::CHROME_APP_DELEGATE));
+ new ScopedKeepAlive(keep_alive::Origin::CHROME_APP_DELEGATE,
+ keep_alive::RestartOption::DISABLED));
}
registrar_.Add(this,
chrome::NOTIFICATION_APP_TERMINATING,
@@ -349,8 +350,8 @@ void ChromeAppDelegate::OnHide() {
void ChromeAppDelegate::OnShow() {
has_been_shown_ = true;
is_hidden_ = false;
- keep_alive_.reset(
- new ScopedKeepAlive(keep_alive::Origin::CHROME_APP_DELEGATE));
+ keep_alive_.reset(new ScopedKeepAlive(keep_alive::Origin::CHROME_APP_DELEGATE,
+ keep_alive::RestartOption::DISABLED));
}
void ChromeAppDelegate::Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698