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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_parser.cc

Issue 12314090: Add utf_string_conversions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/google/google_util.cc ('k') | chrome/browser/history/history_publisher_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/google_apis/gdata_wapi_parser.h" 5 #include "chrome/browser/google_apis/gdata_wapi_parser.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 else 573 else
574 return std::string(); 574 return std::string();
575 } 575 }
576 } 576 }
577 return std::string(); 577 return std::string();
578 } 578 }
579 579
580 // static 580 // static
581 bool ResourceEntry::HasHostedDocumentExtension(const base::FilePath& file) { 581 bool ResourceEntry::HasHostedDocumentExtension(const base::FilePath& file) {
582 #if defined(OS_WIN) 582 #if defined(OS_WIN)
583 std::string file_extension = WideToUTF8(file.Extension()); 583 std::string file_extension = base::WideToUTF8(file.Extension());
584 #else 584 #else
585 std::string file_extension = file.Extension(); 585 std::string file_extension = file.Extension();
586 #endif 586 #endif
587 for (size_t i = 0; i < arraysize(kEntryKindMap); ++i) { 587 for (size_t i = 0; i < arraysize(kEntryKindMap); ++i) {
588 const char* document_extension = kEntryKindMap[i].extension; 588 const char* document_extension = kEntryKindMap[i].extension;
589 if (document_extension && file_extension == document_extension) 589 if (document_extension && file_extension == document_extension)
590 return true; 590 return true;
591 } 591 }
592 return false; 592 return false;
593 } 593 }
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 bool AccountMetadataFeed::Parse(const base::Value& value) { 1014 bool AccountMetadataFeed::Parse(const base::Value& value) {
1015 base::JSONValueConverter<AccountMetadataFeed> converter; 1015 base::JSONValueConverter<AccountMetadataFeed> converter;
1016 if (!converter.Convert(value, this)) { 1016 if (!converter.Convert(value, this)) {
1017 LOG(ERROR) << "Unable to parse: Invalid account metadata feed!"; 1017 LOG(ERROR) << "Unable to parse: Invalid account metadata feed!";
1018 return false; 1018 return false;
1019 } 1019 }
1020 return true; 1020 return true;
1021 } 1021 }
1022 1022
1023 } // namespace google_apis 1023 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google/google_util.cc ('k') | chrome/browser/history/history_publisher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698