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

Unified Diff: extensions/browser/api/system_info/system_info_provider.cc

Issue 389633002: Move system.* family of APIs to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No ash/ dependency anymore Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/system_info/system_info_provider.cc
diff --git a/chrome/browser/extensions/api/system_info/system_info_provider.cc b/extensions/browser/api/system_info/system_info_provider.cc
similarity index 77%
rename from chrome/browser/extensions/api/system_info/system_info_provider.cc
rename to extensions/browser/api/system_info/system_info_provider.cc
index f1a89561718dbf7ef35ad1126cc1a400eaa6b5e7..3c2cf5fd38c91064d041fe67544ee3bff02624b4 100644
--- a/chrome/browser/extensions/api/system_info/system_info_provider.cc
+++ b/extensions/browser/api/system_info/system_info_provider.cc
@@ -2,27 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/api/system_info/system_info_provider.h"
+#include "extensions/browser/api/system_info/system_info_provider.h"
#include "base/bind.h"
#include "content/public/browser/browser_thread.h"
namespace extensions {
-SystemInfoProvider::SystemInfoProvider()
- : is_waiting_for_completion_(false) {
+SystemInfoProvider::SystemInfoProvider() : is_waiting_for_completion_(false) {
base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
worker_pool_ = pool->GetSequencedTaskRunnerWithShutdownBehavior(
pool->GetSequenceToken(),
base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);
}
-SystemInfoProvider::~SystemInfoProvider() {}
+SystemInfoProvider::~SystemInfoProvider() {
+}
-void SystemInfoProvider::PrepareQueryOnUIThread() {}
+void SystemInfoProvider::PrepareQueryOnUIThread() {
+}
-void SystemInfoProvider::InitializeProvider(const base::Closure&
- do_query_info_callback) {
+void SystemInfoProvider::InitializeProvider(
+ const base::Closure& do_query_info_callback) {
do_query_info_callback.Run();
}
@@ -38,8 +39,8 @@ void SystemInfoProvider::StartQueryInfo(
is_waiting_for_completion_ = true;
- InitializeProvider(base::Bind(
- &SystemInfoProvider::StartQueryInfoPostInitialization, this));
+ InitializeProvider(
+ base::Bind(&SystemInfoProvider::StartQueryInfoPostInitialization, this));
}
void SystemInfoProvider::OnQueryCompleted(bool success) {

Powered by Google App Engine
This is Rietveld 408576698