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

Unified Diff: chrome/browser/extensions/api/messaging/native_messaging_test_util.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/api/messaging/native_messaging_test_util.cc
diff --git a/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc b/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc
index 0c694477a6257c19bcdd1d3df96f767e593664b3..085f6c1d05e899c98a7736a52d8fd289e47a42e1 100644
--- a/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc
+++ b/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc
@@ -82,7 +82,7 @@ void ScopedTestNativeMessagingHost::RegisterTestHost(bool user_level) {
path_override_.reset(new base::ScopedPathOverride(
user_level ? chrome::DIR_USER_NATIVE_MESSAGING
: chrome::DIR_NATIVE_MESSAGING,
- temp_dir_.path()));
+ temp_dir_.GetPath()));
#endif
#if defined(OS_POSIX)
@@ -91,10 +91,10 @@ void ScopedTestNativeMessagingHost::RegisterTestHost(bool user_level) {
base::FilePath host_path = test_user_data_dir.AppendASCII("echo.bat");
#endif
ASSERT_NO_FATAL_FAILURE(WriteTestNativeHostManifest(
- temp_dir_.path(), kHostName, host_path, user_level));
+ temp_dir_.GetPath(), kHostName, host_path, user_level));
ASSERT_NO_FATAL_FAILURE(WriteTestNativeHostManifest(
- temp_dir_.path(), kBinaryMissingHostName,
+ temp_dir_.GetPath(), kBinaryMissingHostName,
test_user_data_dir.AppendASCII("missing_nm_binary.exe"), user_level));
}

Powered by Google App Engine
This is Rietveld 408576698