Commit 98156e14 authored by Austin Tankiang's avatar Austin Tankiang Committed by Commit Bot

Remove file manager private dependency on legacy drive client

Bug: 1003238
Change-Id: Ic4f462e62d5642cb4122b2d98d2b79d7dcacdddc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1890400Reviewed-by: default avatarSergei Datsenko <dats@chromium.org>
Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: Austin Tankiang <austinct@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711582}
parent aed1c4b0
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "chromeos/disks/disk.h" #include "chromeos/disks/disk.h"
#include "chromeos/disks/mock_disk_mount_manager.h" #include "chromeos/disks/mock_disk_mount_manager.h"
#include "components/drive/drive_pref_names.h" #include "components/drive/drive_pref_names.h"
#include "components/drive/file_change.h"
#include "components/prefs/pref_service.h" #include "components/prefs/pref_service.h"
#include "components/signin/public/identity_manager/identity_test_utils.h" #include "components/signin/public/identity_manager/identity_test_utils.h"
#include "extensions/common/extension.h" #include "extensions/common/extension.h"
......
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
#include "chrome/common/extensions/api/file_manager_private_internal.h" #include "chrome/common/extensions/api/file_manager_private_internal.h"
#include "chromeos/constants/chromeos_features.h" #include "chromeos/constants/chromeos_features.h"
#include "chromeos/disks/disk_mount_manager.h" #include "chromeos/disks/disk_mount_manager.h"
#include "components/drive/chromeos/file_system_interface.h"
#include "components/drive/drive.pb.h"
#include "components/drive/event_logger.h" #include "components/drive/event_logger.h"
#include "components/drive/file_system_core_util.h" #include "components/drive/file_system_core_util.h"
#include "components/storage_monitor/storage_info.h" #include "components/storage_monitor/storage_info.h"
......
...@@ -43,7 +43,13 @@ namespace drive { ...@@ -43,7 +43,13 @@ namespace drive {
namespace util { namespace util {
class FileStreamMd5Digester; class FileStreamMd5Digester;
} // namespace util } // namespace util
struct HashAndFilePath;
// File path and its MD5 hash obtained from drive.
struct HashAndFilePath {
std::string hash;
base::FilePath path;
};
} // namespace drive } // namespace drive
namespace extensions { namespace extensions {
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h"
#include "chrome/browser/extensions/chrome_extension_function_details.h" #include "chrome/browser/extensions/chrome_extension_function_details.h"
#include "components/drive/drive.pb.h"
#include "components/drive/file_errors.h" #include "components/drive/file_errors.h"
namespace extensions { namespace extensions {
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/file_manager_private.h" #include "chrome/common/extensions/api/file_manager_private.h"
#include "chromeos/components/drivefs/drivefs_util.h" #include "chromeos/components/drivefs/drivefs_util.h"
#include "components/drive/drive.pb.h"
#include "components/drive/drive_api_util.h" #include "components/drive/drive_api_util.h"
#include "components/drive/file_errors.h" #include "components/drive/file_errors.h"
#include "content/public/browser/child_process_security_policy.h" #include "content/public/browser/child_process_security_policy.h"
......
...@@ -34,8 +34,5 @@ function_registration("api_registration") { ...@@ -34,8 +34,5 @@ function_registration("api_registration") {
"//third_party/metrics_proto", "//third_party/metrics_proto",
"//ui/accessibility:ax_enums_mojo", "//ui/accessibility:ax_enums_mojo",
] ]
if (is_chromeos) {
deps += [ "//components/drive:proto" ]
}
deps += [ "//extensions/common/api" ] deps += [ "//extensions/common/api" ]
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment