| Index: chrome/common/importer/firefox_importer_utils.cc
|
| diff --git a/chrome/common/importer/firefox_importer_utils.cc b/chrome/common/importer/firefox_importer_utils.cc
|
| index 76a76a2c5e3de9da00d3a0370979dd6eb8a45008..e1f5ada77718755f5a59d78e63a14e500330e002 100644
|
| --- a/chrome/common/importer/firefox_importer_utils.cc
|
| +++ b/chrome/common/importer/firefox_importer_utils.cc
|
| @@ -311,10 +311,11 @@ base::string16 GetFirefoxImporterName(const base::FilePath& app_path) {
|
| if (line == "[App]") {
|
| in_app_section = true;
|
| } else if (in_app_section) {
|
| - if (line.find(name_attr) == 0) {
|
| + if (base::StartsWith(line, name_attr, base::CompareCase::SENSITIVE)) {
|
| line.substr(name_attr.size()).CopyToString(&branding_name);
|
| break;
|
| - } else if (line.length() > 0 && line[0] == '[') {
|
| + }
|
| + if (line.length() > 0 && line[0] == '[') {
|
| // No longer in the [App] section.
|
| break;
|
| }
|
|
|