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

Unified Diff: chrome/service/cloud_print/print_system_cups.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nat_policy.cc Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/service/cloud_print/print_system_cups.cc
diff --git a/chrome/service/cloud_print/print_system_cups.cc b/chrome/service/cloud_print/print_system_cups.cc
index 54ee38fc7a8f1eaf2a1435751df81227c14b1da5..017a99b60c1bf26590090dff2eb16b67cfce71c7 100644
--- a/chrome/service/cloud_print/print_system_cups.cc
+++ b/chrome/service/cloud_print/print_system_cups.cc
@@ -500,7 +500,7 @@ bool PrintSystemCUPS::ValidatePrintTicket(const std::string& printer_name,
DCHECK(initialized_);
scoped_ptr<Value> ticket_value(base::JSONReader::Read(print_ticket_data,
false));
- return ticket_value != NULL && ticket_value->IsType(Value::TYPE_DICTIONARY);
+ return ticket_value != NULL && ticket_value->IsDictionary();
}
// Print ticket on linux is a JSON string containing only one dictionary.
@@ -508,7 +508,7 @@ bool PrintSystemCUPS::ParsePrintTicket(const std::string& print_ticket,
std::map<std::string, std::string>* options) {
DCHECK(options);
scoped_ptr<Value> ticket_value(base::JSONReader::Read(print_ticket, false));
- if (ticket_value == NULL || !ticket_value->IsType(Value::TYPE_DICTIONARY))
+ if (ticket_value == NULL || !ticket_value->IsDictionary())
return false;
options->clear();

Powered by Google App Engine
This is Rietveld 408576698