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

Unified Diff: android_webview/native/aw_browser_dependency_factory.cc

Issue 10855171: Add a test runner for android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address feedback Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_browser_dependency_factory.h ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_browser_dependency_factory.cc
diff --git a/android_webview/native/aw_browser_dependency_factory.cc b/android_webview/native/aw_browser_dependency_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..68b6aa668a239ca9a1deccd24d37ced05e1d9ffc
--- /dev/null
+++ b/android_webview/native/aw_browser_dependency_factory.cc
@@ -0,0 +1,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
+
« no previous file with comments | « android_webview/native/aw_browser_dependency_factory.h ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698