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

Side by Side Diff: chrome/browser/extensions/api/system_info/system_info_provider.cc

Issue 156703006: Cleanup: Remove unneeded browser_thread.h includes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/api/system_info/system_info_provider.h" 5 #include "chrome/browser/extensions/api/system_info/system_info_provider.h"
6 6
7 #include "base/bind.h"
8 #include "content/public/browser/browser_thread.h"
9
7 namespace extensions { 10 namespace extensions {
8 11
9 SystemInfoProvider::SystemInfoProvider() 12 SystemInfoProvider::SystemInfoProvider()
10 : is_waiting_for_completion_(false) { 13 : is_waiting_for_completion_(false) {
11 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); 14 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
12 worker_pool_ = pool->GetSequencedTaskRunnerWithShutdownBehavior( 15 worker_pool_ = pool->GetSequencedTaskRunnerWithShutdownBehavior(
13 pool->GetSequenceToken(), 16 pool->GetSequenceToken(),
14 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); 17 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);
15 } 18 }
16 19
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Post the custom query info task to blocking pool for information querying 59 // Post the custom query info task to blocking pool for information querying
57 // and reply with OnQueryCompleted. 60 // and reply with OnQueryCompleted.
58 base::PostTaskAndReplyWithResult( 61 base::PostTaskAndReplyWithResult(
59 worker_pool_, 62 worker_pool_,
60 FROM_HERE, 63 FROM_HERE,
61 base::Bind(&SystemInfoProvider::QueryInfo, this), 64 base::Bind(&SystemInfoProvider::QueryInfo, this),
62 base::Bind(&SystemInfoProvider::OnQueryCompleted, this)); 65 base::Bind(&SystemInfoProvider::OnQueryCompleted, this));
63 } 66 }
64 67
65 } // namespace extensions 68 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/system_info/system_info_provider.h ('k') | chrome/browser/extensions/blob_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698