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

Unified Diff: chrome/browser/extensions/extension_service_test_with_install.cc

Issue 2314363002: extensions: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Comment addressed 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/extensions/extension_service_test_with_install.cc
diff --git a/chrome/browser/extensions/extension_service_test_with_install.cc b/chrome/browser/extensions/extension_service_test_with_install.cc
index d5510fbc474cacc8a479eb5310f6078416ade74f..9ff4cf07e22e1857a8d6baa20e5c2f03e42d08cc 100644
--- a/chrome/browser/extensions/extension_service_test_with_install.cc
+++ b/chrome/browser/extensions/extension_service_test_with_install.cc
@@ -105,7 +105,7 @@ const Extension* ExtensionServiceTestWithInstall::PackAndInstallCRX(
base::FilePath crx_path;
base::ScopedTempDir temp_dir;
EXPECT_TRUE(temp_dir.CreateUniqueTempDir());
- crx_path = temp_dir.path().AppendASCII("temp.crx");
+ crx_path = temp_dir.GetPath().AppendASCII("temp.crx");
PackCRX(dir_path, pem_path, crx_path);
return InstallCRX(crx_path, install_state, creation_flags);
@@ -249,7 +249,7 @@ void ExtensionServiceTestWithInstall::PackCRXAndUpdateExtension(
UpdateState expected_state) {
base::ScopedTempDir temp_dir;
EXPECT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath crx_path = temp_dir.path().AppendASCII("temp.crx");
+ base::FilePath crx_path = temp_dir.GetPath().AppendASCII("temp.crx");
PackCRX(dir_path, pem_path, crx_path);
UpdateExtension(id, crx_path, expected_state);
@@ -263,7 +263,7 @@ void ExtensionServiceTestWithInstall::UpdateExtension(
// We need to copy this to a temporary location because Update() will delete
// it.
- base::FilePath path = temp_dir().path();
+ base::FilePath path = temp_dir().GetPath();
path = path.Append(in_path.BaseName());
ASSERT_TRUE(base::CopyFile(in_path, path));
« no previous file with comments | « chrome/browser/extensions/extension_service_test_base.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698