| OLD | NEW |
| 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/component_updater/pnacl/pnacl_component_installer.h" | 5 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/files/file_enumerator.h" | 13 #include "base/files/file_enumerator.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/json/json_file_value_serializer.h" | 15 #include "base/json/json_file_value_serializer.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "base/version.h" | 20 #include "base/version.h" |
| 21 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 24 #include "chrome/browser/component_updater/component_updater_service.h" | 24 #include "chrome/browser/component_updater/component_updater_service.h" |
| 25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| 26 #include "chrome/browser/profiles/profile_manager.h" | 26 #include "chrome/browser/profiles/profile_manager.h" |
| 27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
| 28 #include "chrome/common/chrome_switches.h" | |
| 29 #include "chrome/common/omaha_query_params/omaha_query_params.h" | 28 #include "chrome/common/omaha_query_params/omaha_query_params.h" |
| 29 #include "components/nacl/common/nacl_switches.h" |
| 30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 31 | 31 |
| 32 using chrome::OmahaQueryParams; | 32 using chrome::OmahaQueryParams; |
| 33 using content::BrowserThread; | 33 using content::BrowserThread; |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 // Name of the Pnacl component specified in the manifest. | 37 // Name of the Pnacl component specified in the manifest. |
| 38 const char kPnaclManifestName[] = "PNaCl Translator"; | 38 const char kPnaclManifestName[] = "PNaCl Translator"; |
| 39 | 39 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } | 431 } |
| 432 } | 432 } |
| 433 | 433 |
| 434 void PnaclComponentInstaller::ReRegisterPnacl() { | 434 void PnaclComponentInstaller::ReRegisterPnacl() { |
| 435 DCHECK(per_user_); | 435 DCHECK(per_user_); |
| 436 // Figure out profile information, before proceeding to look for files. | 436 // Figure out profile information, before proceeding to look for files. |
| 437 BrowserThread::PostTask( | 437 BrowserThread::PostTask( |
| 438 BrowserThread::UI, FROM_HERE, | 438 BrowserThread::UI, FROM_HERE, |
| 439 base::Bind(&GetProfileInformation, this)); | 439 base::Bind(&GetProfileInformation, this)); |
| 440 } | 440 } |
| OLD | NEW |