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" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/json/json_value_converter.h" | 12 #include "base/json/json_value_converter.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string_piece.h" | |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_piece.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/google_apis/drive_api_parser.h" | 19 #include "chrome/browser/google_apis/drive_api_parser.h" |
20 #include "chrome/browser/google_apis/time_util.h" | 20 #include "chrome/browser/google_apis/time_util.h" |
21 | 21 |
22 using base::Value; | 22 using base::Value; |
23 using base::DictionaryValue; | 23 using base::DictionaryValue; |
24 using base::ListValue; | 24 using base::ListValue; |
25 | 25 |
26 namespace google_apis { | 26 namespace google_apis { |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 bool AccountMetadata::Parse(const base::Value& value) { | 1014 bool AccountMetadata::Parse(const base::Value& value) { |
1015 base::JSONValueConverter<AccountMetadata> converter; | 1015 base::JSONValueConverter<AccountMetadata> 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 |