| OLD | NEW |
| 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 "extensions/browser/api/system_info/system_info_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 SystemInfoProvider::SystemInfoProvider() | 12 SystemInfoProvider::SystemInfoProvider() |
| 13 : is_waiting_for_completion_(false) { | 13 : is_waiting_for_completion_(false) { |
| 14 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); | 14 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); |
| 15 worker_pool_ = pool->GetSequencedTaskRunnerWithShutdownBehavior( | 15 worker_pool_ = pool->GetSequencedTaskRunnerWithShutdownBehavior( |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // 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 |
| 60 // and reply with OnQueryCompleted. | 60 // and reply with OnQueryCompleted. |
| 61 base::PostTaskAndReplyWithResult( | 61 base::PostTaskAndReplyWithResult( |
| 62 worker_pool_, | 62 worker_pool_, |
| 63 FROM_HERE, | 63 FROM_HERE, |
| 64 base::Bind(&SystemInfoProvider::QueryInfo, this), | 64 base::Bind(&SystemInfoProvider::QueryInfo, this), |
| 65 base::Bind(&SystemInfoProvider::OnQueryCompleted, this)); | 65 base::Bind(&SystemInfoProvider::OnQueryCompleted, this)); |
| 66 } | 66 } |
| 67 | 67 |
| 68 } // namespace extensions | 68 } // namespace extensions |
| OLD | NEW |