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

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

Issue 11198067: Move extension unpack intermediate dir to Extensions/Temp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 8 years, 2 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/convert_web_app.cc
diff --git a/chrome/browser/extensions/convert_web_app.cc b/chrome/browser/extensions/convert_web_app.cc
index 35cef048f7c9295df993a5820d27b703fb239c06..12f2063fdffa332189312469600beb0a0e5c853f 100644
--- a/chrome/browser/extensions/convert_web_app.cc
+++ b/chrome/browser/extensions/convert_web_app.cc
@@ -85,15 +85,17 @@ std::string ConvertTimeToExtensionVersion(const Time& create_time) {
scoped_refptr<Extension> ConvertWebAppToExtension(
const WebApplicationInfo& web_app,
- const Time& create_time) {
- FilePath user_data_temp_dir = extension_file_util::GetUserDataTempDir();
- if (user_data_temp_dir.empty()) {
+ const Time& create_time,
+ const FilePath& all_extensions_dir) {
+ FilePath extensions_temp_dir =
+ extension_file_util::GetExtensionsTempDir(all_extensions_dir);
+ if (extensions_temp_dir.empty()) {
LOG(ERROR) << "Could not get path to profile temporary directory.";
return NULL;
}
ScopedTempDir temp_dir;
- if (!temp_dir.CreateUniqueTempDirUnderPath(user_data_temp_dir)) {
+ if (!temp_dir.CreateUniqueTempDirUnderPath(extensions_temp_dir)) {
LOG(ERROR) << "Could not create temporary directory.";
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698