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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_operations.cc

Issue 10918101: Rename elements of LinkType enum (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/gdata_operations.h" 5 #include "chrome/browser/chromeos/gdata/gdata_operations.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/gdata/gdata_util.h" 10 #include "chrome/browser/chromeos/gdata/gdata_util.h"
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 } 578 }
579 } 579 }
580 } 580 }
581 581
582 // From the response, we create a list of the links returned, since those 582 // From the response, we create a list of the links returned, since those
583 // are the only things we are interested in. 583 // are the only things we are interested in.
584 scoped_ptr<base::ListValue> link_list(new ListValue); 584 scoped_ptr<base::ListValue> link_list(new ListValue);
585 const ScopedVector<Link>& feed_links = entry->links(); 585 const ScopedVector<Link>& feed_links = entry->links();
586 for (ScopedVector<Link>::const_iterator iter = feed_links.begin(); 586 for (ScopedVector<Link>::const_iterator iter = feed_links.begin();
587 iter != feed_links.end(); ++iter) { 587 iter != feed_links.end(); ++iter) {
588 if ((*iter)->type() == Link::OPEN_WITH) { 588 if ((*iter)->type() == Link::kOpenWith) {
589 base::DictionaryValue* link = new DictionaryValue; 589 base::DictionaryValue* link = new DictionaryValue;
590 link->SetString(std::string("href"), (*iter)->href().spec()); 590 link->SetString(std::string("href"), (*iter)->href().spec());
591 link->SetString(std::string("mime_type"), (*iter)->mime_type()); 591 link->SetString(std::string("mime_type"), (*iter)->mime_type());
592 link->SetString(std::string("title"), (*iter)->title()); 592 link->SetString(std::string("title"), (*iter)->title());
593 link->SetString(std::string("app_id"), (*iter)->app_id()); 593 link->SetString(std::string("app_id"), (*iter)->app_id());
594 link_list->Append(link); 594 link_list->Append(link);
595 } 595 }
596 } 596 }
597 597
598 RunCallback(fetch_error_code, link_list.PassAs<base::Value>()); 598 RunCallback(fetch_error_code, link_list.PassAs<base::Value>());
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 OnProcessURLFetchResultsComplete(code == HTTP_SUCCESS); 1008 OnProcessURLFetchResultsComplete(code == HTTP_SUCCESS);
1009 } 1009 }
1010 1010
1011 void GetContactPhotoOperation::RunCallbackOnPrematureFailure( 1011 void GetContactPhotoOperation::RunCallbackOnPrematureFailure(
1012 GDataErrorCode code) { 1012 GDataErrorCode code) {
1013 scoped_ptr<std::string> data(new std::string); 1013 scoped_ptr<std::string> data(new std::string);
1014 callback_.Run(code, data.Pass()); 1014 callback_.Run(code, data.Pass());
1015 } 1015 }
1016 1016
1017 } // namespace gdata 1017 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698