Commit cd77f102 authored by Anand K. Mistry's avatar Anand K. Mistry Committed by Commit Bot

Remove unnecessary and minimally used 'using' statements from SmbService

Bug: None
Change-Id: Idb695ce4366dbcbbf48e2958b2f74276d5491ad9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2030927
Auto-Submit: Anand Mistry <amistry@chromium.org>
Reviewed-by: default avatarFrançois Degros <fdegros@chromium.org>
Commit-Queue: Anand Mistry <amistry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#737218}
parent 99bf6e8a
...@@ -26,7 +26,8 @@ namespace chromeos { ...@@ -26,7 +26,8 @@ namespace chromeos {
namespace smb_client { namespace smb_client {
namespace { namespace {
const ProviderId kProviderId = ProviderId::CreateFromNativeId("smb"); const file_system_provider::ProviderId kProviderId =
file_system_provider::ProviderId::CreateFromNativeId("smb");
constexpr char kSharePath[] = "\\\\server\\foobar"; constexpr char kSharePath[] = "\\\\server\\foobar";
constexpr int32_t kMountId = 4; constexpr int32_t kMountId = 4;
constexpr char kDirectoryPath[] = "foo/bar"; constexpr char kDirectoryPath[] = "foo/bar";
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include "net/base/network_interfaces.h" #include "net/base/network_interfaces.h"
#include "url/url_util.h" #include "url/url_util.h"
using chromeos::file_system_provider::Service;
namespace chromeos { namespace chromeos {
namespace smb_client { namespace smb_client {
...@@ -478,7 +476,7 @@ base::File::Error SmbService::Unmount( ...@@ -478,7 +476,7 @@ base::File::Error SmbService::Unmount(
return result; return result;
} }
Service* SmbService::GetProviderService() const { file_system_provider::Service* SmbService::GetProviderService() const {
return file_system_provider::Service::Get(profile_); return file_system_provider::Service::Get(profile_);
} }
......
...@@ -40,12 +40,7 @@ class PrefRegistrySyncable; ...@@ -40,12 +40,7 @@ class PrefRegistrySyncable;
namespace chromeos { namespace chromeos {
namespace smb_client { namespace smb_client {
using file_system_provider::Capabilities;
using file_system_provider::ProvidedFileSystemInfo; using file_system_provider::ProvidedFileSystemInfo;
using file_system_provider::ProvidedFileSystemInterface;
using file_system_provider::ProviderId;
using file_system_provider::ProviderInterface;
using file_system_provider::Service;
class SmbKerberosCredentialsUpdater; class SmbKerberosCredentialsUpdater;
...@@ -166,7 +161,7 @@ class SmbService : public KeyedService, ...@@ -166,7 +161,7 @@ class SmbService : public KeyedService,
const std::string& file_system_id, const std::string& file_system_id,
file_system_provider::Service::UnmountReason reason); file_system_provider::Service::UnmountReason reason);
Service* GetProviderService() const; file_system_provider::Service* GetProviderService() const;
SmbProviderClient* GetSmbProviderClient() const; SmbProviderClient* GetSmbProviderClient() const;
...@@ -305,7 +300,7 @@ class SmbService : public KeyedService, ...@@ -305,7 +300,7 @@ class SmbService : public KeyedService,
static bool disable_share_discovery_for_testing_; static bool disable_share_discovery_for_testing_;
base::TimeTicks previous_host_discovery_time_; base::TimeTicks previous_host_discovery_time_;
const ProviderId provider_id_; const file_system_provider::ProviderId provider_id_;
Profile* profile_; Profile* profile_;
std::unique_ptr<base::TickClock> tick_clock_; std::unique_ptr<base::TickClock> tick_clock_;
std::unique_ptr<TempFileManager> temp_file_manager_; std::unique_ptr<TempFileManager> temp_file_manager_;
......
...@@ -48,7 +48,8 @@ namespace smb_client { ...@@ -48,7 +48,8 @@ namespace smb_client {
namespace { namespace {
const ProviderId kProviderId = ProviderId::CreateFromNativeId("smb"); const file_system_provider::ProviderId kProviderId =
file_system_provider::ProviderId::CreateFromNativeId("smb");
constexpr char kTestUser[] = "foobar"; constexpr char kTestUser[] = "foobar";
constexpr char kTestDomain[] = "EXAMPLE.COM"; constexpr char kTestDomain[] = "EXAMPLE.COM";
constexpr char kSharePath[] = "\\\\server\\foobar"; constexpr char kSharePath[] = "\\\\server\\foobar";
......
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