| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/previews/previews_service.h" | 5 #include "chrome/browser/previews/previews_service.h" |
| 6 | 6 |
| 7 #include "components/previews/previews_ui_service.h" | 7 #include "components/previews/core/previews_ui_service.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 | 9 |
| 10 PreviewsService::PreviewsService() { | 10 PreviewsService::PreviewsService() { |
| 11 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 11 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 12 } | 12 } |
| 13 | 13 |
| 14 PreviewsService::~PreviewsService() { | 14 PreviewsService::~PreviewsService() { |
| 15 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 15 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void PreviewsService::set_previews_ui_service( | 18 void PreviewsService::set_previews_ui_service( |
| 19 std::unique_ptr<previews::PreviewsUIService> previews_ui_service) { | 19 std::unique_ptr<previews::PreviewsUIService> previews_ui_service) { |
| 20 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 20 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 21 previews_ui_service_ = std::move(previews_ui_service); | 21 previews_ui_service_ = std::move(previews_ui_service); |
| 22 } | 22 } |
| OLD | NEW |