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

Unified Diff: chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc

Issue 2318023002: //chrome/browser/chromeos: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Fix FileManagerBrowsertest Created 4 years, 3 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/chromeos/file_manager/external_filesystem_apitest.cc
diff --git a/chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc b/chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc
index d2d37bf7ef4ae7aa153165e78c86e7cbb1ba1617..9c1f949b2e2592d97e0f3c0528925d7d08fe6bd4 100644
--- a/chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc
+++ b/chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc
@@ -123,7 +123,7 @@ bool InitializeLocalFileSystem(std::string mount_point_name,
if (!tmp_dir->CreateUniqueTempDir())
return false;
- *mount_point_dir = tmp_dir->path().AppendASCII(mount_point_name);
+ *mount_point_dir = tmp_dir->GetPath().AppendASCII(mount_point_name);
// Create the mount point.
if (!base::CreateDirectory(*mount_point_dir))
return false;
@@ -545,8 +545,9 @@ class DriveFileSystemExtensionApiTest : public FileSystemExtensionApiTestBase {
std::map<std::string, std::string> resource_ids;
EXPECT_TRUE(InitializeDriveService(fake_drive_service_, &resource_ids));
- return new drive::DriveIntegrationService(
- profile, NULL, fake_drive_service_, "", test_cache_root_.path(), NULL);
+ return new drive::DriveIntegrationService(profile, NULL,
+ fake_drive_service_, "",
+ test_cache_root_.GetPath(), NULL);
}
base::ScopedTempDir test_cache_root_;
@@ -564,8 +565,6 @@ class MultiProfileDriveFileSystemExtensionApiTest :
MultiProfileDriveFileSystemExtensionApiTest() : second_profile_(NULL) {}
void SetUpOnMainThread() override {
- ASSERT_TRUE(tmp_dir_.CreateUniqueTempDir());
-
base::FilePath user_data_directory;
PathService::Get(chrome::DIR_USER_DATA, &user_data_directory);
user_manager::UserManager::Get()->UserLoggedIn(
@@ -583,6 +582,8 @@ class MultiProfileDriveFileSystemExtensionApiTest :
}
void InitTestFileSystem() override {
+ ASSERT_TRUE(tmp_dir_.CreateUniqueTempDir());
vabr (Chromium) 2016/09/07 15:55:06 I needed to move the CreateUniqueTempDir call from
+
// This callback will get called during Profile creation.
create_drive_integration_service_ = base::Bind(
&MultiProfileDriveFileSystemExtensionApiTest::
@@ -603,8 +604,8 @@ class MultiProfileDriveFileSystemExtensionApiTest :
drive::DriveIntegrationService* CreateDriveIntegrationService(
Profile* profile) {
base::FilePath cache_dir;
- base::CreateTemporaryDirInDir(tmp_dir_.path(), base::FilePath::StringType(),
- &cache_dir);
+ base::CreateTemporaryDirInDir(tmp_dir_.GetPath(),
+ base::FilePath::StringType(), &cache_dir);
drive::FakeDriveService* const fake_drive_service =
new drive::FakeDriveService;
@@ -707,12 +708,9 @@ class LocalAndDriveFileSystemExtensionApiTest
std::map<std::string, std::string> resource_ids;
EXPECT_TRUE(InitializeDriveService(fake_drive_service_, &resource_ids));
- return new drive::DriveIntegrationService(profile,
- NULL,
- fake_drive_service_,
- "drive",
- test_cache_root_.path(),
- NULL);
+ return new drive::DriveIntegrationService(profile, NULL,
+ fake_drive_service_, "drive",
+ test_cache_root_.GetPath(), NULL);
}
private:

Powered by Google App Engine
This is Rietveld 408576698