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

Unified Diff: chrome/browser/extensions/api/system_info_storage/storage_info_provider_android.cc

Issue 12084017: [SystemInfo API] Implement systemInfo.storage.onAvailableCapacityChanged event (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add a stub file to pass building on Android Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/system_info_storage/storage_info_provider_android.cc
diff --git a/chrome/browser/extensions/api/system_info_storage/storage_info_provider_android.cc b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..25e9f6ec008ba52bb7917b5af3fc719c5e98fe03
--- /dev/null
+++ b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_android.cc
@@ -0,0 +1,40 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// 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_storage/storage_info_provider.h"
+
+namespace extensions {
+
+namespace {
+
+using api::experimental_system_info_storage::StorageUnitInfo;
+
+// Empty StorageInfoProvider implementation on Android platform.
+class StorageInfoProviderAndroid : public StorageInfoProvider {
+ public:
+ StorageInfoProviderAndroid() {}
+
+ virtual bool QueryInfo(StorageInfo* info) OVERRIDE {
+ NOTIMPLEMENTED();
+ return false;
+ }
+ virtual bool QueryUnitInfo(const std::string& id,
+ StorageUnitInfo* info) OVERRIDE {
+ NOTIMPLEMENTED();
+ return false;
+ }
+
+ private:
+ virtual ~StorageInfoProviderAndroid() {}
+};
+
+} //
+
+// static
+StorageInfoProvider* StorageInfoProvider::Get() {
+ return StorageInfoProvider::GetInstance<StorageInfoProviderAndroid>();
+}
+
+} // namespace extensions
+

Powered by Google App Engine
This is Rietveld 408576698