Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / android_webview / native / aw_browser_dependency_factory.cc
blob68b6aa668a239ca9a1deccd24d37ced05e1d9ffc
1 // Copyright (c) 2012 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 "android_webview/native/aw_browser_dependency_factory.h"
7 #include "base/logging.h"
9 namespace android_webview {
11 namespace {
13 AwBrowserDependencyFactory* g_instance = NULL;
15 } // namespace
17 AwBrowserDependencyFactory::AwBrowserDependencyFactory() {}
19 AwBrowserDependencyFactory::~AwBrowserDependencyFactory() {}
21 // static
22 void AwBrowserDependencyFactory::SetInstance(
23 AwBrowserDependencyFactory* delegate) {
24 g_instance = delegate;
27 // static
28 AwBrowserDependencyFactory* AwBrowserDependencyFactory::GetInstance() {
29 DCHECK(g_instance); // Must always be confirgured on startup.
30 return g_instance;
33 } // namespace android_webview