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

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

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments Created 8 years, 3 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
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/chromeos/gdata/drive_api_parser.h" 5 #include "chrome/browser/google_apis/drive_api_parser.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/json/json_value_converter.h" 11 #include "base/json/json_value_converter.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "base/string_piece.h" 14 #include "base/string_piece.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/browser/chromeos/gdata/gdata_util.h" 17 #include "chrome/browser/google_apis/gdata_util.h"
18 18
19 using base::Value; 19 using base::Value;
20 using base::DictionaryValue; 20 using base::DictionaryValue;
21 using base::ListValue; 21 using base::ListValue;
22 22
23 namespace { 23 namespace {
24 24
25 // Converts |url_string| to |result|. Always returns true to be used 25 // Converts |url_string| to |result|. Always returns true to be used
26 // for JSONValueConverter::RegisterCustomField method. 26 // for JSONValueConverter::RegisterCustomField method.
27 // TODO(mukai): make it return false in case of invalid |url_string|. 27 // TODO(mukai): make it return false in case of invalid |url_string|.
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 bool FileLabels::Parse(const base::Value& value) { 632 bool FileLabels::Parse(const base::Value& value) {
633 base::JSONValueConverter<FileLabels> converter; 633 base::JSONValueConverter<FileLabels> converter;
634 if (!converter.Convert(value, this)) { 634 if (!converter.Convert(value, this)) {
635 LOG(ERROR) << "Unable to parse: Invalid FileLabels"; 635 LOG(ERROR) << "Unable to parse: Invalid FileLabels";
636 return false; 636 return false;
637 } 637 }
638 return true; 638 return true;
639 } 639 }
640 640
641 } // namespace gdata 641 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_parser.h ('k') | chrome/browser/google_apis/drive_api_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698