OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/open_from_clipboard/clipboard_recent_content.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace { |
| 10 ClipboardRecentContent* g_clipboard_recent_content = nullptr; |
| 11 } |
| 12 |
| 13 ClipboardRecentContent::ClipboardRecentContent() {} |
| 14 |
| 15 ClipboardRecentContent::~ClipboardRecentContent() {} |
| 16 |
| 17 // static |
| 18 ClipboardRecentContent* ClipboardRecentContent::GetInstance() { |
| 19 DCHECK(g_clipboard_recent_content); |
| 20 return g_clipboard_recent_content; |
| 21 } |
| 22 |
| 23 // static |
| 24 void ClipboardRecentContent::SetInstance(ClipboardRecentContent* instance) { |
| 25 g_clipboard_recent_content = instance; |
| 26 } |
OLD | NEW |