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

Side by Side Diff: extensions/browser/sandboxed_unpacker.cc

Issue 1282363003: Convert remaining StringToLowerASCII to ToLowerASCII (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/sandboxed_unpacker.h" 5 #include "extensions/browser/sandboxed_unpacker.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 213
214 SandboxedUnpacker::SandboxedUnpacker( 214 SandboxedUnpacker::SandboxedUnpacker(
215 const CRXFileInfo& file, 215 const CRXFileInfo& file,
216 Manifest::Location location, 216 Manifest::Location location,
217 int creation_flags, 217 int creation_flags,
218 const base::FilePath& extensions_dir, 218 const base::FilePath& extensions_dir,
219 const scoped_refptr<base::SequencedTaskRunner>& unpacker_io_task_runner, 219 const scoped_refptr<base::SequencedTaskRunner>& unpacker_io_task_runner,
220 SandboxedUnpackerClient* client) 220 SandboxedUnpackerClient* client)
221 : crx_path_(file.path), 221 : crx_path_(file.path),
222 package_hash_(base::StringToLowerASCII(file.expected_hash)), 222 package_hash_(base::ToLowerASCII(file.expected_hash)),
223 check_crx_hash_(false), 223 check_crx_hash_(false),
224 client_(client), 224 client_(client),
225 extensions_dir_(extensions_dir), 225 extensions_dir_(extensions_dir),
226 got_response_(false), 226 got_response_(false),
227 location_(location), 227 location_(location),
228 creation_flags_(creation_flags), 228 creation_flags_(creation_flags),
229 unpacker_io_task_runner_(unpacker_io_task_runner) { 229 unpacker_io_task_runner_(unpacker_io_task_runner) {
230 if (!package_hash_.empty()) { 230 if (!package_hash_.empty()) {
231 check_crx_hash_ = base::CommandLine::ForCurrentProcess()->HasSwitch( 231 check_crx_hash_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
232 extensions::switches::kEnableCrxHashCheck); 232 extensions::switches::kEnableCrxHashCheck);
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 804
805 void SandboxedUnpacker::Cleanup() { 805 void SandboxedUnpacker::Cleanup() {
806 DCHECK(unpacker_io_task_runner_->RunsTasksOnCurrentThread()); 806 DCHECK(unpacker_io_task_runner_->RunsTasksOnCurrentThread());
807 if (!temp_dir_.Delete()) { 807 if (!temp_dir_.Delete()) {
808 LOG(WARNING) << "Can not delete temp directory at " 808 LOG(WARNING) << "Can not delete temp directory at "
809 << temp_dir_.path().value(); 809 << temp_dir_.path().value();
810 } 810 }
811 } 811 }
812 812
813 } // namespace extensions 813 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_throttle_manager.cc ('k') | extensions/browser/verified_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698