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

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

Issue 2714053003: Fix GCC build for target 'all' (Closed)
Patch Set: #if defined(__GNUC__) Created 3 years, 9 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 "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/sequenced_task_runner.h" 9 #include "base/sequenced_task_runner.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 11 matching lines...) Expand all
22 PreviewsService::~PreviewsService() { 22 PreviewsService::~PreviewsService() {
23 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 23 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
24 } 24 }
25 25
26 void PreviewsService::Initialize( 26 void PreviewsService::Initialize(
27 previews::PreviewsIOData* previews_io_data, 27 previews::PreviewsIOData* previews_io_data,
28 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, 28 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner,
29 const base::FilePath& profile_path) { 29 const base::FilePath& profile_path) {
30 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 30 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
31 31
32 base::SequencedWorkerPool* blocking_pool =
33 content::BrowserThread::GetBlockingPool();
32 // Get the background thread to run SQLite on. 34 // Get the background thread to run SQLite on.
33 scoped_refptr<base::SequencedTaskRunner> background_task_runner = 35 scoped_refptr<base::SequencedTaskRunner> background_task_runner =
34 content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( 36 blocking_pool->GetSequencedTaskRunner(blocking_pool->GetSequenceToken());
35 content::BrowserThread::GetBlockingPool()->GetSequenceToken());
36 37
37 previews_ui_service_ = base::MakeUnique<previews::PreviewsUIService>( 38 previews_ui_service_ = base::MakeUnique<previews::PreviewsUIService>(
38 previews_io_data, io_task_runner, 39 previews_io_data, io_task_runner,
39 base::MakeUnique<previews::PreviewsOptOutStoreSQL>( 40 base::MakeUnique<previews::PreviewsOptOutStoreSQL>(
40 io_task_runner, background_task_runner, 41 io_task_runner, background_task_runner,
41 profile_path.Append(chrome::kPreviewsOptOutDBFilename))); 42 profile_path.Append(chrome::kPreviewsOptOutDBFilename)));
42 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698