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 "google_apis/drive/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/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/google_apis/time_util.h" | 19 #include "google_apis/drive/time_util.h" |
20 | 20 |
21 using base::Value; | 21 using base::Value; |
22 using base::DictionaryValue; | 22 using base::DictionaryValue; |
23 using base::ListValue; | 23 using base::ListValue; |
24 | 24 |
25 namespace google_apis { | 25 namespace google_apis { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Term values for kSchemeKind category: | 29 // Term values for kSchemeKind category: |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 bool AccountMetadata::Parse(const base::Value& value) { | 874 bool AccountMetadata::Parse(const base::Value& value) { |
875 base::JSONValueConverter<AccountMetadata> converter; | 875 base::JSONValueConverter<AccountMetadata> converter; |
876 if (!converter.Convert(value, this)) { | 876 if (!converter.Convert(value, this)) { |
877 LOG(ERROR) << "Unable to parse: Invalid account metadata feed!"; | 877 LOG(ERROR) << "Unable to parse: Invalid account metadata feed!"; |
878 return false; | 878 return false; |
879 } | 879 } |
880 return true; | 880 return true; |
881 } | 881 } |
882 | 882 |
883 } // namespace google_apis | 883 } // namespace google_apis |
OLD | NEW |