chrome/browser/chromeos/extensions/external_filesystem_apitest.cc
// Adds a next feed URL property to the given feed value.
Adds a next feed URL property to the given feed value.
Adds a next feed URL property to the given feed value .
bool AddNextFeedURLToFeedValue(const std::string& url, base::Value* feed) {
  DictionaryValue* feed_as_dictionary;
  if (!feed->GetAsDictionary(&feed_as_dictionary))
    return false;
  ListValue* links;
  if (!feed_as_dictionary->GetList("feed.link", &links))
    return false;
  DictionaryValue* link_value = new DictionaryValue();
  link_value->SetString("href", url);
  link_value->SetString("rel", "next");
  link_value->SetString("type", "application/atom_xml");
  links->Append(link_value);
  return true;
}
bool AddNextFeedURLToFeedValue ( const std :: string & url , base :: Value * feed ) { DictionaryValue * feed_as_dictionary ; if ( ! feed -> GetAsDictionary ( & feed_as_dictionary ) ) return false ; ListValue * links ; if ( ! feed_as_dictionary -> GetList ( " " , & links ) ) return false ; DictionaryValue * link_value = new DictionaryValue ( ) ; link_value -> SetString ( " " , url ) ; link_value -> SetString ( " " , " " ) ; link_value -> SetString ( " " , " " ) ; links -> Append ( link_value ) ; return true ; }
Adds a next feed URL property to the given feed value.
Adds a next feed URL property to the given feed value .