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

Unified Diff: chrome/browser/apps/scoped_keep_alive.cc

Issue 1376063005: Cleanup: Pull some browser keep alive functions into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 5 years, 3 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/apps/scoped_keep_alive.cc
diff --git a/chrome/browser/apps/scoped_keep_alive.cc b/chrome/browser/apps/scoped_keep_alive.cc
index 586a47448a0eff3f57996632c90ddeba5f20a39a..c934dd435572209bb5ee99f73793940efcd944fa 100644
--- a/chrome/browser/apps/scoped_keep_alive.cc
+++ b/chrome/browser/apps/scoped_keep_alive.cc
@@ -5,15 +5,15 @@
#include "chrome/browser/apps/scoped_keep_alive.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/lifetime/application_lifetime.h"
+#include "chrome/browser/lifetime/browser_keep_alive.h"
ScopedKeepAlive::ScopedKeepAlive() {
// Allow ScopedKeepAlive to be used in unit tests.
if (g_browser_process)
- chrome::IncrementKeepAliveCount();
+ browser_lifetime::IncrementKeepAliveCount();
}
ScopedKeepAlive::~ScopedKeepAlive() {
if (g_browser_process)
- chrome::DecrementKeepAliveCount();
+ browser_lifetime::DecrementKeepAliveCount();
}

Powered by Google App Engine
This is Rietveld 408576698