| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/component_updater/ios_component_updater_configurato
r.h" | 5 #include "ios/chrome/browser/component_updater/ios_component_updater_configurato
r.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| 11 #include "base/version.h" | 11 #include "base/version.h" |
| 12 #include "components/component_updater/configurator_impl.h" | 12 #include "components/component_updater/configurator_impl.h" |
| 13 #include "components/update_client/component_patcher_operation.h" | 13 #include "components/update_client/out_of_process_patcher.h" |
| 14 #include "components/update_client/update_query_params.h" | 14 #include "components/update_client/update_query_params.h" |
| 15 #include "ios/chrome/browser/application_context.h" | 15 #include "ios/chrome/browser/application_context.h" |
| 16 #include "ios/chrome/browser/google/google_brand.h" | 16 #include "ios/chrome/browser/google/google_brand.h" |
| 17 #include "ios/chrome/common/channel_info.h" | 17 #include "ios/chrome/common/channel_info.h" |
| 18 #include "ios/web/public/web_thread.h" | 18 #include "ios/web/public/web_thread.h" |
| 19 | 19 |
| 20 namespace component_updater { | 20 namespace component_updater { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 bool IOSConfigurator::IsPerUserInstall() const { | 168 bool IOSConfigurator::IsPerUserInstall() const { |
| 169 return true; | 169 return true; |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace | 172 } // namespace |
| 173 | 173 |
| 174 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( | 174 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( |
| 175 const base::CommandLine* cmdline, | 175 const base::CommandLine* cmdline, |
| 176 net::URLRequestContextGetter* context_getter) { | 176 net::URLRequestContextGetter* context_getter) { |
| 177 return new IOSConfigurator(cmdline, context_getter); | 177 return base::MakeShared<IOSConfigurator>(cmdline, context_getter); |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace component_updater | 180 } // namespace component_updater |
| OLD | NEW |