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

Side by Side Diff: components/component_updater/component_patcher_operation.cc

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extensions from component_updater.gypi dependencies, due to introducing cycle Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/component_updater/component_patcher_operation.h" 5 #include "components/component_updater/component_patcher_operation.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/files/memory_mapped_file.h" 11 #include "base/files/memory_mapped_file.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "chrome/browser/component_updater/component_patcher.h" 14 #include "components/component_updater/component_patcher.h"
15 #include "chrome/browser/component_updater/component_updater_service.h" 15 #include "components/component_updater/component_updater_service.h"
16 #include "courgette/courgette.h" 16 #include "courgette/courgette.h"
17 #include "courgette/third_party/bsdiff.h" 17 #include "courgette/third_party/bsdiff.h"
18 #include "crypto/secure_hash.h" 18 #include "crypto/secure_hash.h"
19 #include "crypto/sha2.h" 19 #include "crypto/sha2.h"
20 #include "crypto/signature_verifier.h" 20 #include "crypto/signature_verifier.h"
21 #include "extensions/common/crx_file.h" 21 #include "extensions/common/crx_file.h"
22 22
23 using crypto::SecureHash; 23 using crypto::SecureHash;
24 24
25 namespace component_updater { 25 namespace component_updater {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } else { 257 } else {
258 callback.Run(ComponentUnpacker::kDeltaOperationFailure, 258 callback.Run(ComponentUnpacker::kDeltaOperationFailure,
259 result + kCourgetteErrorOffset); 259 result + kCourgetteErrorOffset);
260 } 260 }
261 } else { 261 } else {
262 NOTREACHED(); 262 NOTREACHED();
263 } 263 }
264 } 264 }
265 265
266 } // namespace component_updater 266 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698