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

Unified Diff: chrome/utility/media_galleries/picasa_albums_indexer.cc

Issue 2127373006: Use base::StartWith() in more places when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, resolve conflict Created 4 years, 5 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
Index: chrome/utility/media_galleries/picasa_albums_indexer.cc
diff --git a/chrome/utility/media_galleries/picasa_albums_indexer.cc b/chrome/utility/media_galleries/picasa_albums_indexer.cc
index 7eded27db44bfe3654efd4ab982ded5d57cccf52..c6b88bc53118ab13fc72e547db16acd972d89f74 100644
--- a/chrome/utility/media_galleries/picasa_albums_indexer.cc
+++ b/chrome/utility/media_galleries/picasa_albums_indexer.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/strings/string_split.h"
+#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "chrome/common/ini_parser.h"
@@ -38,7 +39,8 @@ class PicasaINIParser : public INIParser {
return;
// [.album:*] sections ignored as we get that data from the PMP files.
- if (section.find(kAlbumSectionHeader) == 0)
+ if (base::StartsWith(section, kAlbumSectionHeader,
+ base::CompareCase::SENSITIVE))
return;
for (const std::string& album : base::SplitString(
« no previous file with comments | « chrome/test/ppapi/ppapi_filechooser_browsertest.cc ('k') | components/autofill/core/browser/autofill_profile_comparator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698