Index: components/open_from_clipboard/clipboard_recent_content.cc |
diff --git a/components/open_from_clipboard/clipboard_recent_content.cc b/components/open_from_clipboard/clipboard_recent_content.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5af65cda871822d0955f4e5a95dcdb89f8bfbade |
--- /dev/null |
+++ b/components/open_from_clipboard/clipboard_recent_content.cc |
@@ -0,0 +1,26 @@ |
+// 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 "components/open_from_clipboard/clipboard_recent_content.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace { |
+ClipboardRecentContent* g_clipboard_recent_content = nullptr; |
+} |
+ |
+ClipboardRecentContent::ClipboardRecentContent() {} |
+ |
+ClipboardRecentContent::~ClipboardRecentContent() {} |
+ |
+// static |
+ClipboardRecentContent* ClipboardRecentContent::GetInstance() { |
+ DCHECK(g_clipboard_recent_content); |
+ return g_clipboard_recent_content; |
+} |
+ |
+// static |
+void ClipboardRecentContent::SetInstance(ClipboardRecentContent* instance) { |
+ g_clipboard_recent_content = instance; |
+} |