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

Unified Diff: extensions/browser/api/document_scan/document_scan_interface_nonchromeos.cc

Issue 899523004: Move chrome.documentScan API to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated DEPS Created 5 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: extensions/browser/api/document_scan/document_scan_interface_nonchromeos.cc
diff --git a/chrome/browser/extensions/api/document_scan/document_scan_interface_nonchromeos.cc b/extensions/browser/api/document_scan/document_scan_interface_nonchromeos.cc
similarity index 79%
rename from chrome/browser/extensions/api/document_scan/document_scan_interface_nonchromeos.cc
rename to extensions/browser/api/document_scan/document_scan_interface_nonchromeos.cc
index 949f1903d83b3cebef3b873e7f05726a36164b60..6e8e50b9eca6e5889dff24f9c0d0009d6f083daa 100644
--- a/chrome/browser/extensions/api/document_scan/document_scan_interface_nonchromeos.cc
+++ b/extensions/browser/api/document_scan/document_scan_interface_nonchromeos.cc
@@ -2,7 +2,7 @@
// 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/document_scan/document_scan_interface.h"
+#include "extensions/browser/api/document_scan/document_scan_interface.h"
namespace {
@@ -12,7 +12,7 @@ const char kScanFunctionNotImplementedError[] = "Scan function not implemented";
namespace extensions {
-namespace api {
+namespace core_api {
class DocumentScanInterfaceImpl : public DocumentScanInterface {
public:
@@ -20,7 +20,7 @@ class DocumentScanInterfaceImpl : public DocumentScanInterface {
~DocumentScanInterfaceImpl() override {}
void ListScanners(const ListScannersResultsCallback& callback) override {
- callback.Run(std::vector<ScannerDescription> (), "");
+ callback.Run(std::vector<ScannerDescription>(), "");
}
void Scan(const std::string& scanner_name,
ScanMode mode,
@@ -34,10 +34,10 @@ class DocumentScanInterfaceImpl : public DocumentScanInterface {
};
// static
-DocumentScanInterface *DocumentScanInterface::CreateInstance() {
+DocumentScanInterface* DocumentScanInterface::CreateInstance() {
return new DocumentScanInterfaceImpl();
}
-} // namespace api
+} // namespace core_api
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698