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

Unified Diff: chrome/browser/ui/app_list/scoped_keep_alive.cc

Issue 557833007: Remove Increment/DecrementKeepAliveCount from AppsClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 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
« no previous file with comments | « chrome/browser/ui/app_list/scoped_keep_alive.h ('k') | chrome/browser/ui/apps/chrome_app_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/scoped_keep_alive.cc
diff --git a/chrome/browser/ui/app_list/scoped_keep_alive.cc b/chrome/browser/ui/app_list/scoped_keep_alive.cc
deleted file mode 100644
index c93558a3be3a1007f3396f1bb710700b0920dbea..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/app_list/scoped_keep_alive.cc
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/app_list/scoped_keep_alive.h"
-
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/lifetime/application_lifetime.h"
-
-ScopedKeepAlive::ScopedKeepAlive() {
- // Allow ScopedKeepAlive to be used in unit tests.
- if (g_browser_process)
- chrome::IncrementKeepAliveCount();
-}
-
-ScopedKeepAlive::~ScopedKeepAlive() {
- if (g_browser_process)
- chrome::DecrementKeepAliveCount();
-}
« no previous file with comments | « chrome/browser/ui/app_list/scoped_keep_alive.h ('k') | chrome/browser/ui/apps/chrome_app_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698