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

Side by Side Diff: chrome/common/importer/firefox_importer_utils.cc

Issue 448853002: Move StringToLowerASCII to 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 #include "chrome/common/importer/firefox_importer_utils.h" 5 #include "chrome/common/importer/firefox_importer_utils.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 branding_name = lines[i].substr(name_attr.size()); 315 branding_name = lines[i].substr(name_attr.size());
316 break; 316 break;
317 } else if (lines[i].length() > 0 && lines[i][0] == '[') { 317 } else if (lines[i].length() > 0 && lines[i][0] == '[') {
318 // No longer in the [App] section. 318 // No longer in the [App] section.
319 break; 319 break;
320 } 320 }
321 } 321 }
322 } 322 }
323 } 323 }
324 324
325 StringToLowerASCII(&branding_name); 325 base::StringToLowerASCII(&branding_name);
326 if (branding_name.find("iceweasel") != std::string::npos) 326 if (branding_name.find("iceweasel") != std::string::npos)
327 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_ICEWEASEL); 327 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_ICEWEASEL);
328 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_FIREFOX); 328 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_FIREFOX);
329 } 329 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc ('k') | chrome/installer/util/language_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698