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

Side by Side Diff: chrome/installer/setup/install_worker.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 (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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 version_key, 835 version_key,
836 KEY_WOW64_32KEY, 836 KEY_WOW64_32KEY,
837 google_update::kRegOopcrashesField, 837 google_update::kRegOopcrashesField,
838 static_cast<DWORD>(1), 838 static_cast<DWORD>(1),
839 false); // set during first install 839 false); // set during first install
840 if (add_language_identifier) { 840 if (add_language_identifier) {
841 // Write the language identifier of the current translation. Omaha's set of 841 // Write the language identifier of the current translation. Omaha's set of
842 // languages is a superset of Chrome's set of translations with this one 842 // languages is a superset of Chrome's set of translations with this one
843 // exception: what Chrome calls "en-us", Omaha calls "en". sigh. 843 // exception: what Chrome calls "en-us", Omaha calls "en". sigh.
844 base::string16 language(GetCurrentTranslation()); 844 base::string16 language(GetCurrentTranslation());
845 if (LowerCaseEqualsASCII(language, "en-us")) 845 if (base::LowerCaseEqualsASCII(language, "en-us"))
846 language.resize(2); 846 language.resize(2);
847 list->AddSetRegValueWorkItem(root, 847 list->AddSetRegValueWorkItem(root,
848 version_key, 848 version_key,
849 KEY_WOW64_32KEY, 849 KEY_WOW64_32KEY,
850 google_update::kRegLangField, 850 google_update::kRegLangField,
851 language, 851 language,
852 false); // do not overwrite language 852 false); // do not overwrite language
853 } 853 }
854 list->AddSetRegValueWorkItem(root, 854 list->AddSetRegValueWorkItem(root,
855 version_key, 855 version_key,
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 // Unconditionally remove the legacy Quick Enable command from the binaries. 1658 // Unconditionally remove the legacy Quick Enable command from the binaries.
1659 // Do this even if multi-install Chrome isn't installed to ensure that it is 1659 // Do this even if multi-install Chrome isn't installed to ensure that it is
1660 // not left behind in any case. 1660 // not left behind in any case.
1661 work_item_list->AddDeleteRegKeyWorkItem( 1661 work_item_list->AddDeleteRegKeyWorkItem(
1662 installer_state.root_key(), cmd_key, KEY_WOW64_32KEY) 1662 installer_state.root_key(), cmd_key, KEY_WOW64_32KEY)
1663 ->set_log_message("removing " + base::UTF16ToASCII(kCmdQuickEnableCf) + 1663 ->set_log_message("removing " + base::UTF16ToASCII(kCmdQuickEnableCf) +
1664 " command"); 1664 " command");
1665 } 1665 }
1666 1666
1667 } // namespace installer 1667 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc ('k') | chrome/installer/util/l10n_string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698