| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |