summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 04:00:57 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 04:00:57 +0000
commita65175d452e6cb3c9c3599ab4206c42b8ab78bfd (patch)
treeae69bde6df9080e4e367c23bba9096a1bf302c60 /chrome/browser/printing
parentd9e0c26a9c2850d42c4de6b2f981a8da56497c2c (diff)
downloadchromium_src-a65175d452e6cb3c9c3599ab4206c42b8ab78bfd.zip
chromium_src-a65175d452e6cb3c9c3599ab4206c42b8ab78bfd.tar.gz
chromium_src-a65175d452e6cb3c9c3599ab4206c42b8ab78bfd.tar.bz2
Remove deprecated wstring DictionaryValue Get{Boolean,Integer,Real,Binary,Dictionary,List}().
BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3187004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r--chrome/browser/printing/print_dialog_cloud.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index 8e7a839..368d25b 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -137,7 +137,7 @@ GURL CloudPrintService::GetCloudPrintServiceDialogURL() {
}
bool GetRealOrInt(const DictionaryValue& dictionary,
- const std::wstring& path,
+ const std::string& path,
double* out_value) {
if (!dictionary.GetReal(path, out_value)) {
int int_value = 0;
@@ -161,10 +161,10 @@ bool GetPageSetupParameters(const std::string& json,
bool result = true;
DictionaryValue* params = static_cast<DictionaryValue*>(parsed_value.get());
- result &= GetRealOrInt(*params, L"dpi", &parameters.dpi);
- result &= GetRealOrInt(*params, L"min_shrink", &parameters.min_shrink);
- result &= GetRealOrInt(*params, L"max_shrink", &parameters.max_shrink);
- result &= params->GetBoolean(L"selection_only", &parameters.selection_only);
+ result &= GetRealOrInt(*params, "dpi", &parameters.dpi);
+ result &= GetRealOrInt(*params, "min_shrink", &parameters.min_shrink);
+ result &= GetRealOrInt(*params, "max_shrink", &parameters.max_shrink);
+ result &= params->GetBoolean("selection_only", &parameters.selection_only);
return result;
}