summaryrefslogtreecommitdiffstats
path: root/android_webview/native/aw_browser_dependency_factory.cc
blob: 68b6aa668a239ca9a1deccd24d37ced05e1d9ffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2012 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 "android_webview/native/aw_browser_dependency_factory.h"

#include "base/logging.h"

namespace android_webview {

namespace {

AwBrowserDependencyFactory* g_instance = NULL;

}  // namespace

AwBrowserDependencyFactory::AwBrowserDependencyFactory() {}

AwBrowserDependencyFactory::~AwBrowserDependencyFactory() {}

// static
void AwBrowserDependencyFactory::SetInstance(
    AwBrowserDependencyFactory* delegate) {
  g_instance = delegate;
}

// static
AwBrowserDependencyFactory* AwBrowserDependencyFactory::GetInstance() {
  DCHECK(g_instance);  // Must always be confirgured on startup.
  return g_instance;
}

}  // namespace android_webview