Home | History | Annotate | Download | only in options

Lines Matching refs:json

7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h"
39 bool GetAuthData(const std::string& json,
44 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
58 bool GetConfiguration(const std::string& json, SyncConfiguration* config) {
59 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
133 bool GetPassphrase(const std::string& json, std::string* passphrase) {
134 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
142 bool GetFirstPassphrase(const std::string& json,
145 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
368 std::string json;
369 if (!args->GetString(0, &json)) {
370 NOTREACHED() << "Could not read JSON argument";
374 if (json.empty())
378 if (!GetAuthData(json, &username, &password, &captcha, &access_code)) {
390 std::string json;
391 if (!args->GetString(0, &json)) {
392 NOTREACHED() << "Could not read JSON argument";
395 if (json.empty()) {
401 if (!GetConfiguration(json, &configuration)) {
413 std::string json;
414 if (!args->GetString(0, &json)) {
415 NOTREACHED() << "Could not read JSON argument";
419 if (json.empty())
423 if (!GetPassphrase(json, &passphrase)) {
439 std::string json;
440 if (!args->GetString(0, &json)) {
441 NOTREACHED() << "Could not read JSON argument";
444 if (json.empty())
449 if (!GetFirstPassphrase(json, &option, &passphrase)) {