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

Side by Side Diff: components/component_updater/default_component_installer.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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/file_enumerator.h" 7 #include "base/files/file_enumerator.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "base/version.h" 14 #include "base/version.h"
15 // TODO(ddorwin): Find a better place for ReadManifest. 15 // TODO(ddorwin): Find a better place for ReadManifest.
16 #include "chrome/browser/component_updater/component_unpacker.h" 16 #include "components/component_updater/component_unpacker.h"
17 #include "chrome/browser/component_updater/component_updater_configurator.h" 17 #include "components/component_updater/component_updater_configurator.h"
18 #include "chrome/browser/component_updater/default_component_installer.h" 18 #include "components/component_updater/default_component_installer.h"
19 19
20 namespace component_updater { 20 namespace component_updater {
21 21
22 namespace { 22 namespace {
23 // Version "0" corresponds to no installed version. By the server's conventions, 23 // Version "0" corresponds to no installed version. By the server's conventions,
24 // we represent it as a dotted quad. 24 // we represent it as a dotted quad.
25 const char kNullVersion[] = "0.0.0.0"; 25 const char kNullVersion[] = "0.0.0.0";
26 } // namespace 26 } // namespace
27 27
28 ComponentInstallerTraits::~ComponentInstallerTraits() { 28 ComponentInstallerTraits::~ComponentInstallerTraits() {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 if (current_version_.CompareTo(base::Version(kNullVersion)) > 0) { 223 if (current_version_.CompareTo(base::Version(kNullVersion)) > 0) {
224 scoped_ptr<base::DictionaryValue> manifest_copy( 224 scoped_ptr<base::DictionaryValue> manifest_copy(
225 current_manifest_->DeepCopy()); 225 current_manifest_->DeepCopy());
226 installer_traits_->ComponentReady( 226 installer_traits_->ComponentReady(
227 current_version_, GetInstallDirectory(), manifest_copy.Pass()); 227 current_version_, GetInstallDirectory(), manifest_copy.Pass());
228 } 228 }
229 } 229 }
230 230
231 } // namespace component_updater 231 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698