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

Unified Diff: content/browser/download/save_package.h

Issue 1182453004: Write new Starts/EndsWith and convert FilePath functions to StringPiece. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: default back Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« base/strings/string_util.h ('K') | « base/win/win_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_package.h
diff --git a/content/browser/download/save_package.h b/content/browser/download/save_package.h
index 3507b1760b4c29e02aee251e37da9687827fcc40..071a5b7adead60a4eebbad9f4208bd2b957dd38d 100644
--- a/content/browser/download/save_package.h
+++ b/content/browser/download/save_package.h
@@ -301,9 +301,10 @@ class CONTENT_EXPORT SavePackage
// Number of all need to be saved resources.
size_t all_save_items_count_;
- typedef std::set<base::FilePath::StringType,
- bool (*)(const base::FilePath::StringType&,
- const base::FilePath::StringType&)> FileNameSet;
+ using FileNameSet =
+ std::set<base::FilePath::StringType,
+ bool (*)(base::FilePath::StringPieceType,
+ base::FilePath::StringPieceType)>;
// This set is used to eliminate duplicated file names in saving directory.
FileNameSet file_name_set_;
« base/strings/string_util.h ('K') | « base/win/win_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698