1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/app_list/keep_alive_service_impl.h"
7 #include "chrome/browser/lifetime/application_lifetime.h"
9 ScopedKeepAlive::ScopedKeepAlive() { chrome::IncrementKeepAliveCount(); }
11 ScopedKeepAlive::~ScopedKeepAlive() { chrome::DecrementKeepAliveCount(); }
13 KeepAliveServiceImpl::KeepAliveServiceImpl() {
16 KeepAliveServiceImpl::~KeepAliveServiceImpl() {
19 void KeepAliveServiceImpl::EnsureKeepAlive() {
21 keep_alive_.reset(new ScopedKeepAlive());
24 void KeepAliveServiceImpl::FreeKeepAlive() {