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

Unified Diff: chrome/common/extensions/extension_unpacker.cc

Issue 2861039: Revert 51231 - Loosen permission on extension temp dir when a flag is used.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_unpacker.cc
===================================================================
--- chrome/common/extensions/extension_unpacker.cc (revision 51236)
+++ chrome/common/extensions/extension_unpacker.cc (working copy)
@@ -4,7 +4,6 @@
#include "chrome/common/extensions/extension_unpacker.h"
-#include "base/command_line.h"
#include "base/file_util.h"
#include "base/scoped_handle.h"
#include "base/scoped_temp_dir.h"
@@ -12,7 +11,6 @@
#include "base/thread.h"
#include "base/values.h"
#include "net/base/file_stream.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/common_param_traits.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_constants.h"
@@ -144,23 +142,12 @@
extension_path_.DirName().AppendASCII(filenames::kTempExtensionName);
#if defined(OS_WIN)
- // To understand crbug/35198, allow users who can reproduce the issue
- // to enable extra logging while unpacking.
- bool extra_logging = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kIssue35198ExtraLogging);
- LOG(INFO) << "Extra logging for issue 35198: " << extra_logging;
-
std::ostringstream log_stream;
std::string dir_string = WideToUTF8(temp_install_dir_.value());
log_stream << kCouldNotCreateDirectoryError << dir_string << std::endl;
-
if (!file_util::CreateDirectoryExtraLogging(temp_install_dir_, log_stream)) {
- if (extra_logging) {
- log_stream.flush();
- SetError(log_stream.str());
- } else {
- SetError(kCouldNotCreateDirectoryError + dir_string);
- }
+ log_stream.flush();
+ SetError(log_stream.str());
return false;
}
#else
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698