[ExtensionToolbarMac] Restrict action button drags to the container's bounds
[chromium-blink-merge.git] / chrome / browser / apps / scoped_keep_alive.cc
blob586a47448a0eff3f57996632c90ddeba5f20a39a
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
3 // found in the LICENSE file.
5 #include "chrome/browser/apps/scoped_keep_alive.h"
7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/lifetime/application_lifetime.h"
10 ScopedKeepAlive::ScopedKeepAlive() {
11 // Allow ScopedKeepAlive to be used in unit tests.
12 if (g_browser_process)
13 chrome::IncrementKeepAliveCount();
16 ScopedKeepAlive::~ScopedKeepAlive() {
17 if (g_browser_process)
18 chrome::DecrementKeepAliveCount();