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( | |
bengr
2016/09/08 00:19:09
You should be able to inline both the getter and s
RyanSturm
2016/09/08 18:34:33
I'm not so sure about the setter, it would at leas
| |
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 } | |
23 | |
24 previews::PreviewsUIService* PreviewsService::previews_ui_service() { | |
25 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | |
26 return previews_ui_service_.get(); | |
27 } | |
OLD | NEW |