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

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

Issue 565363002: Implement support for fallback update check urls in the component updater (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/bind_helpers.h"
6 #include "base/files/file_enumerator.h" 7 #include "base/files/file_enumerator.h"
7 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
9 #include "base/location.h" 10 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 11 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
12 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
13 #include "base/values.h" 14 #include "base/values.h"
14 #include "base/version.h" 15 #include "base/version.h"
15 // TODO(ddorwin): Find a better place for ReadManifest. 16 // TODO(ddorwin): Find a better place for ReadManifest.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 223
223 if (current_version_.CompareTo(base::Version(kNullVersion)) > 0) { 224 if (current_version_.CompareTo(base::Version(kNullVersion)) > 0) {
224 scoped_ptr<base::DictionaryValue> manifest_copy( 225 scoped_ptr<base::DictionaryValue> manifest_copy(
225 current_manifest_->DeepCopy()); 226 current_manifest_->DeepCopy());
226 installer_traits_->ComponentReady( 227 installer_traits_->ComponentReady(
227 current_version_, GetInstallDirectory(), manifest_copy.Pass()); 228 current_version_, GetInstallDirectory(), manifest_copy.Pass());
228 } 229 }
229 } 230 }
230 231
231 } // namespace component_updater 232 } // namespace component_updater
OLDNEW
« no previous file with comments | « components/component_updater/component_updater_service.cc ('k') | components/component_updater/request_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698