sdefresne | d369f98 | 2015-08-06 12:56:40 | [diff] [blame] | 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 | |
sdefresne | d369f98 | 2015-08-06 12:56:40 | [diff] [blame] | 7 | namespace { |
| 8 | ClipboardRecentContent* g_clipboard_recent_content = nullptr; |
| 9 | } |
| 10 | |
| 11 | ClipboardRecentContent::ClipboardRecentContent() {} |
| 12 | |
| 13 | ClipboardRecentContent::~ClipboardRecentContent() {} |
| 14 | |
| 15 | // static |
| 16 | ClipboardRecentContent* ClipboardRecentContent::GetInstance() { |
sdefresne | d369f98 | 2015-08-06 12:56:40 | [diff] [blame] | 17 | return g_clipboard_recent_content; |
| 18 | } |
| 19 | |
| 20 | // static |
| 21 | void ClipboardRecentContent::SetInstance(ClipboardRecentContent* instance) { |
| 22 | g_clipboard_recent_content = instance; |
| 23 | } |