Commit e396b15e authored by Jimmy Gong's avatar Jimmy Gong Committed by Commit Bot

Add RequestUpdatedSharePath to SmbFileSystem

- Adds RequestUpdatedSharePath helper function to SmbFileSystem.

Bug: 922273
Test: compiles
Change-Id: Ida2043d9f78b585aa70252b7a8b3937dd456d527
Reviewed-on: https://chromium-review.googlesource.com/c/1445235
Commit-Queue: jimmy gong <jimmyxgong@chromium.org>
Auto-Submit: jimmy gong <jimmyxgong@chromium.org>
Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Reviewed-by: default avatarBailey Berro <baileyberro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629850}
parent 9b77f366
......@@ -577,6 +577,11 @@ void SmbFileSystem::RequestUpdatedCredentials(base::OnceClosure reply) {
request_creds_callback_.Run(GetMountPath(), GetMountId(), std::move(reply));
}
void SmbFileSystem::RequestUpdatedSharePath(
SmbService::StartReadDirIfSuccessfulCallback reply) {
request_path_callback_.Run(GetMountPath(), GetMountId(), std::move(reply));
}
void SmbFileSystem::HandleRequestReadDirectoryCallback(
storage::AsyncFileUtil::ReadDirectoryCallback callback,
const base::ElapsedTimer& metrics_timer,
......
......@@ -239,6 +239,11 @@ class SmbFileSystem : public file_system_provider::ProvidedFileSystemInterface,
// updated, |reply| is executed.
void RequestUpdatedCredentials(base::OnceClosure reply);
// Requests updated share path for the mount. Once the share path have been,
// updated, |reply| is executed.
void RequestUpdatedSharePath(
SmbService::StartReadDirIfSuccessfulCallback reply);
void HandleRequestUnmountCallback(
storage::AsyncFileUtil::StatusCallback callback,
smbprovider::ErrorType error);
......
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