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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <map> 10 #include <map>
9 #include <string> 11 #include <string>
10 12
11 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
13 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
16 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
17 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
18 #include "base/values.h" 20 #include "base/values.h"
21 #include "build/build_config.h"
19 #include "chrome/common/ini_parser.h" 22 #include "chrome/common/ini_parser.h"
20 #include "chrome/grit/generated_resources.h" 23 #include "chrome/grit/generated_resources.h"
21 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
22 #include "url/gurl.h" 25 #include "url/gurl.h"
23 26
24 namespace { 27 namespace {
25 28
26 // Retrieves the file system path of the profile name. 29 // Retrieves the file system path of the profile name.
27 base::FilePath GetProfilePath(const base::DictionaryValue& root, 30 base::FilePath GetProfilePath(const base::DictionaryValue& root,
28 const std::string& profile_name) { 31 const std::string& profile_name) {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 } 320 }
318 } 321 }
319 } 322 }
320 } 323 }
321 324
322 branding_name = base::ToLowerASCII(branding_name); 325 branding_name = base::ToLowerASCII(branding_name);
323 if (branding_name.find("iceweasel") != std::string::npos) 326 if (branding_name.find("iceweasel") != std::string::npos)
324 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_ICEWEASEL); 327 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_ICEWEASEL);
325 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_FIREFOX); 328 return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_FIREFOX);
326 } 329 }
OLDNEW
« no previous file with comments | « chrome/common/importer/firefox_importer_utils.h ('k') | chrome/common/importer/firefox_importer_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698