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

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

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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 "chrome/browser/extensions/sandboxed_unpacker.h" 5 #include "chrome/browser/extensions/sandboxed_unpacker.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 return false; 168 return false;
169 } 169 }
170 170
171 } // namespace 171 } // namespace
172 172
173 namespace extensions { 173 namespace extensions {
174 174
175 SandboxedUnpacker::SandboxedUnpacker( 175 SandboxedUnpacker::SandboxedUnpacker(
176 const FilePath& crx_path, 176 const FilePath& crx_path,
177 bool run_out_of_process, 177 bool run_out_of_process,
178 Extension::Location location, 178 Manifest::Location location,
179 int creation_flags, 179 int creation_flags,
180 const FilePath& extensions_dir, 180 const FilePath& extensions_dir,
181 base::SequencedTaskRunner* unpacker_io_task_runner, 181 base::SequencedTaskRunner* unpacker_io_task_runner,
182 SandboxedUnpackerClient* client) 182 SandboxedUnpackerClient* client)
183 : crx_path_(crx_path), 183 : crx_path_(crx_path),
184 run_out_of_process_(run_out_of_process), 184 run_out_of_process_(run_out_of_process),
185 client_(client), 185 client_(client),
186 extensions_dir_(extensions_dir), 186 extensions_dir_(extensions_dir),
187 got_response_(false), 187 got_response_(false),
188 location_(location), 188 location_(location),
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 791
792 void SandboxedUnpacker::Cleanup() { 792 void SandboxedUnpacker::Cleanup() {
793 DCHECK(unpacker_io_task_runner_->RunsTasksOnCurrentThread()); 793 DCHECK(unpacker_io_task_runner_->RunsTasksOnCurrentThread());
794 if (!temp_dir_.Delete()) { 794 if (!temp_dir_.Delete()) {
795 LOG(WARNING) << "Can not delete temp directory at " 795 LOG(WARNING) << "Can not delete temp directory at "
796 << temp_dir_.path().value(); 796 << temp_dir_.path().value();
797 } 797 }
798 } 798 }
799 799
800 } // namespace extensions 800 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698