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

Unified Diff: chrome/browser/drive/drive_api_util.cc

Issue 89243003: Move EmptyString, kWhitespace and the BOM to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/browser/drive/drive_api_util.cc
diff --git a/chrome/browser/drive/drive_api_util.cc b/chrome/browser/drive/drive_api_util.cc
index 732ab63e2ab8ead22e40d0839de910de3e6d4a77..845e5d2e91ae5e59e7195e2b1d373bd0eee54703 100644
--- a/chrome/browser/drive/drive_api_util.cc
+++ b/chrome/browser/drive/drive_api_util.cc
@@ -162,12 +162,12 @@ std::string TranslateQuery(const std::string& original_query) {
// In order to handle non-ascii white spaces correctly, convert to UTF16.
base::string16 query = UTF8ToUTF16(original_query);
const base::string16 kDelimiter(
- kWhitespaceUTF16 + base::string16(1, static_cast<char16>('"')));
+ base::kWhitespaceUTF16 + base::string16(1, static_cast<char16>('"')));
std::string result;
- for (size_t index = query.find_first_not_of(kWhitespaceUTF16);
+ for (size_t index = query.find_first_not_of(base::kWhitespaceUTF16);
index != base::string16::npos;
- index = query.find_first_not_of(kWhitespaceUTF16, index)) {
+ index = query.find_first_not_of(base::kWhitespaceUTF16, index)) {
bool is_exclusion = (query[index] == '-');
if (is_exclusion)
++index;
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_test_helper.h ('k') | chrome/browser/extensions/user_script_master.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698