diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-08 20:40:15 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-08 20:40:15 +0000 |
commit | 6cdfd7f74ebadbe6fd2f557039b8b94242dd714e (patch) | |
tree | 39125d76f2a25515427dd53a81265d73bbb8ed18 /net/tools/tld_cleanup/tld_cleanup.cc | |
parent | 81aee95aa6bcb433e4bc26212ea3341edf839bdb (diff) | |
download | chromium_src-6cdfd7f74ebadbe6fd2f557039b8b94242dd714e.zip chromium_src-6cdfd7f74ebadbe6fd2f557039b8b94242dd714e.tar.gz chromium_src-6cdfd7f74ebadbe6fd2f557039b8b94242dd714e.tar.bz2 |
Replace FilePath with base::FilePath in net.
Review URL: https://codereview.chromium.org/12218081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/tld_cleanup/tld_cleanup.cc')
-rw-r--r-- | net/tools/tld_cleanup/tld_cleanup.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/tools/tld_cleanup/tld_cleanup.cc b/net/tools/tld_cleanup/tld_cleanup.cc index 6774cc4..db66c4c 100644 --- a/net/tools/tld_cleanup/tld_cleanup.cc +++ b/net/tools/tld_cleanup/tld_cleanup.cc @@ -58,7 +58,7 @@ const char kEndPrivateDomainsComment[] = "// ===END PRIVATE DOMAINS==="; // Writes the list of domain rules contained in the 'rules' set to the // 'outfile', with each rule terminated by a LF. The file must already have // been created with write access. -bool WriteRules(const RuleMap& rules, const FilePath& outfile) { +bool WriteRules(const RuleMap& rules, const base::FilePath& outfile) { std::string data; data.append( "%{\n" @@ -166,8 +166,8 @@ NormalizeResult NormalizeRule(std::string* domain, Rule* rule) { // Loads the file described by 'in_filename', converts it to the desired format // (see the file comments above), and saves it into 'out_filename'. Returns // the most severe of the result codes encountered when normalizing the rules. -NormalizeResult NormalizeFile(const FilePath& in_filename, - const FilePath& out_filename) { +NormalizeResult NormalizeFile(const base::FilePath& in_filename, + const base::FilePath& out_filename) { std::string data; if (!file_util::ReadFileToString(in_filename, &data)) { LOG(ERROR) << "Unable to read file"; @@ -280,7 +280,7 @@ int main(int argc, const char* argv[]) { CommandLine::Init(argc, argv); - FilePath log_filename; + base::FilePath log_filename; PathService::Get(base::DIR_EXE, &log_filename); log_filename = log_filename.AppendASCII("tld_cleanup.log"); logging::InitLogging( @@ -292,14 +292,14 @@ int main(int argc, const char* argv[]) { icu_util::Initialize(); - FilePath input_file; + base::FilePath input_file; PathService::Get(base::DIR_SOURCE_ROOT, &input_file); input_file = input_file.Append(FILE_PATH_LITERAL("net")) .Append(FILE_PATH_LITERAL("base")) .Append(FILE_PATH_LITERAL( "registry_controlled_domains")) .Append(FILE_PATH_LITERAL("effective_tld_names.dat")); - FilePath output_file; + base::FilePath output_file; PathService::Get(base::DIR_SOURCE_ROOT, &output_file); output_file = output_file.Append(FILE_PATH_LITERAL("net")) .Append(FILE_PATH_LITERAL("base")) |