| 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/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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 line.substr(name_attr.size()).CopyToString(&branding_name); | 312 line.substr(name_attr.size()).CopyToString(&branding_name); |
| 313 break; | 313 break; |
| 314 } else if (line.length() > 0 && line[0] == '[') { | 314 } else if (line.length() > 0 && line[0] == '[') { |
| 315 // No longer in the [App] section. | 315 // No longer in the [App] section. |
| 316 break; | 316 break; |
| 317 } | 317 } |
| 318 } | 318 } |
| 319 } | 319 } |
| 320 } | 320 } |
| 321 | 321 |
| 322 base::StringToLowerASCII(&branding_name); | 322 branding_name = base::ToLowerASCII(branding_name); |
| 323 if (branding_name.find("iceweasel") != std::string::npos) | 323 if (branding_name.find("iceweasel") != std::string::npos) |
| 324 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_ICEWEASEL); | 324 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_ICEWEASEL); |
| 325 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_FIREFOX); | 325 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_FIREFOX); |
| 326 } | 326 } |
| OLD | NEW |