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

Unified Diff: components/physical_web_data_source/physical_web_data_source.cc

Issue 2113473002: Add a Physical Web data source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove notification Created 4 years, 6 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
Index: components/physical_web_data_source/physical_web_data_source.cc
diff --git a/components/physical_web_data_source/physical_web_data_source.cc b/components/physical_web_data_source/physical_web_data_source.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f5844961a4666eb8ca9ba70910ad7115b6b72933
--- /dev/null
+++ b/components/physical_web_data_source/physical_web_data_source.cc
@@ -0,0 +1,24 @@
+// Copyright 2016 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 "components/physical_web_data_source/physical_web_data_source.h"
+
+namespace {
+PhysicalWebDataSource* g_physical_web_data_source = nullptr;
+}
+
+PhysicalWebDataSource::PhysicalWebDataSource() {}
+
+PhysicalWebDataSource::~PhysicalWebDataSource() {}
+
+// static
+PhysicalWebDataSource* PhysicalWebDataSource::GetInstance() {
+ return g_physical_web_data_source;
+}
+
+// static
+void PhysicalWebDataSource::SetInstance(
+ PhysicalWebDataSource* instance) {
+ g_physical_web_data_source = instance;
+}

Powered by Google App Engine
This is Rietveld 408576698