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

Side by Side Diff: chrome/browser/apps/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, 2 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/apps/scoped_keep_alive.h ('k') | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/app_list/scoped_keep_alive.h" 5 #include "chrome/browser/apps/scoped_keep_alive.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/lifetime/application_lifetime.h" 8 #include "chrome/browser/lifetime/application_lifetime.h"
9 9
10 ScopedKeepAlive::ScopedKeepAlive() { 10 ScopedKeepAlive::ScopedKeepAlive() {
11 // Allow ScopedKeepAlive to be used in unit tests. 11 // Allow ScopedKeepAlive to be used in unit tests.
12 if (g_browser_process) 12 if (g_browser_process)
13 chrome::IncrementKeepAliveCount(); 13 chrome::IncrementKeepAliveCount();
14 } 14 }
15 15
16 ScopedKeepAlive::~ScopedKeepAlive() { 16 ScopedKeepAlive::~ScopedKeepAlive() {
17 if (g_browser_process) 17 if (g_browser_process)
18 chrome::DecrementKeepAliveCount(); 18 chrome::DecrementKeepAliveCount();
19 } 19 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/scoped_keep_alive.h ('k') | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698