| 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 // This file contains the definitions of the installer functions that build | 5 // This file contains the definitions of the installer functions that build |
| 6 // the WorkItemList used to install the application. | 6 // the WorkItemList used to install the application. |
| 7 | 7 |
| 8 #include "chrome/installer/setup/install_worker.h" | 8 #include "chrome/installer/setup/install_worker.h" |
| 9 | 9 |
| 10 #include <oaidl.h> | 10 #include <oaidl.h> |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 version_key, | 710 version_key, |
| 711 KEY_WOW64_32KEY, | 711 KEY_WOW64_32KEY, |
| 712 google_update::kRegOopcrashesField, | 712 google_update::kRegOopcrashesField, |
| 713 static_cast<DWORD>(1), | 713 static_cast<DWORD>(1), |
| 714 false); // set during first install | 714 false); // set during first install |
| 715 if (add_language_identifier) { | 715 if (add_language_identifier) { |
| 716 // Write the language identifier of the current translation. Omaha's set of | 716 // Write the language identifier of the current translation. Omaha's set of |
| 717 // languages is a superset of Chrome's set of translations with this one | 717 // languages is a superset of Chrome's set of translations with this one |
| 718 // exception: what Chrome calls "en-us", Omaha calls "en". sigh. | 718 // exception: what Chrome calls "en-us", Omaha calls "en". sigh. |
| 719 base::string16 language(GetCurrentTranslation()); | 719 base::string16 language(GetCurrentTranslation()); |
| 720 if (LowerCaseEqualsASCII(language, "en-us")) | 720 if (base::LowerCaseEqualsASCII(language, "en-us")) |
| 721 language.resize(2); | 721 language.resize(2); |
| 722 list->AddSetRegValueWorkItem(root, | 722 list->AddSetRegValueWorkItem(root, |
| 723 version_key, | 723 version_key, |
| 724 KEY_WOW64_32KEY, | 724 KEY_WOW64_32KEY, |
| 725 google_update::kRegLangField, | 725 google_update::kRegLangField, |
| 726 language, | 726 language, |
| 727 false); // do not overwrite language | 727 false); // do not overwrite language |
| 728 } | 728 } |
| 729 list->AddSetRegValueWorkItem(root, | 729 list->AddSetRegValueWorkItem(root, |
| 730 version_key, | 730 version_key, |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 // Unconditionally remove the legacy Quick Enable command from the binaries. | 1561 // Unconditionally remove the legacy Quick Enable command from the binaries. |
| 1562 // Do this even if multi-install Chrome isn't installed to ensure that it is | 1562 // Do this even if multi-install Chrome isn't installed to ensure that it is |
| 1563 // not left behind in any case. | 1563 // not left behind in any case. |
| 1564 work_item_list->AddDeleteRegKeyWorkItem( | 1564 work_item_list->AddDeleteRegKeyWorkItem( |
| 1565 installer_state.root_key(), cmd_key, KEY_WOW64_32KEY) | 1565 installer_state.root_key(), cmd_key, KEY_WOW64_32KEY) |
| 1566 ->set_log_message("removing " + base::UTF16ToASCII(kCmdQuickEnableCf) + | 1566 ->set_log_message("removing " + base::UTF16ToASCII(kCmdQuickEnableCf) + |
| 1567 " command"); | 1567 " command"); |
| 1568 } | 1568 } |
| 1569 | 1569 |
| 1570 } // namespace installer | 1570 } // namespace installer |
| OLD | NEW |