OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 "chrome/browser/previews/previews_service.h" |
| 6 |
| 7 #include "components/previews/previews_ui_service.h" |
| 8 #include "content/public/browser/browser_thread.h" |
| 9 |
| 10 PreviewsService::PreviewsService() { |
| 11 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 12 } |
| 13 |
| 14 PreviewsService::~PreviewsService() { |
| 15 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 16 } |
| 17 |
| 18 void PreviewsService::set_previews_ui_service( |
| 19 std::unique_ptr<previews::PreviewsUIService> previews_ui_service) { |
| 20 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 21 previews_ui_service_ = std::move(previews_ui_service); |
| 22 } |
OLD | NEW |