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

Unified Diff: ios/web/public/browsing_data_partition_client.cc

Issue 1247143002: Adding BrowsingDataPartitionClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: ios/web/public/browsing_data_partition_client.cc
diff --git a/ios/web/public/browsing_data_partition_client.cc b/ios/web/public/browsing_data_partition_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..178b756c3fecd40a4b3151326cd185408a6be5a6
--- /dev/null
+++ b/ios/web/public/browsing_data_partition_client.cc
@@ -0,0 +1,22 @@
+// Copyright 2015 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 "ios/web/public/browsing_data_partition_client.h"
+
+namespace web {
+
+static BrowsingDataPartitionClient* g_client;
Eugene But (OOO till 7-30) 2015/07/21 21:48:03 We don't use static keyword for globals in Chromiu
shreyasv1 2015/07/21 22:12:06 Good catch.
+
+void SetBrowsingDataPartitionClient(BrowsingDataPartitionClient* client) {
+ g_client = client;
+}
+
+BrowsingDataPartitionClient* GetBrowsingDataPartitionClient() {
+ return g_client;
+}
+
+BrowsingDataPartitionClient::BrowsingDataPartitionClient() {}
+BrowsingDataPartitionClient::~BrowsingDataPartitionClient() {}
+
+} // namespace web
« ios/web/browsing_data_partition_impl.mm ('K') | « ios/web/public/browsing_data_partition_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698