Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/previews/previews_service.cc

Issue 2333003002: Changed previews component to be a layered component. (Closed)
Patch Set: Rebased on master Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698