summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_dialog_cloud.cc
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 21:05:01 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 21:05:01 +0000
commit036056a357cf18b30070a1900164d1bf3967c39e (patch)
treedb6b3db45195d2c7660642d159a08db11ed1e17a /chrome/browser/printing/print_dialog_cloud.cc
parentc41486d8085c6b748a26734701f0a02bafd18716 (diff)
downloadchromium_src-036056a357cf18b30070a1900164d1bf3967c39e.zip
chromium_src-036056a357cf18b30070a1900164d1bf3967c39e.tar.gz
chromium_src-036056a357cf18b30070a1900164d1bf3967c39e.tar.bz2
Remove web_ui_util helper functions.
Remove web_ui_util::GetJsonResponseFromFirstArgumentInList() & web_ui_util::GetJsonResponseFromArgumentList(). Associated review at: http://codereview.chromium.org/6574007/ BUG=none TEST=none Review URL: http://codereview.chromium.org/6581041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_dialog_cloud.cc')
-rw-r--r--chrome/browser/printing/print_dialog_cloud.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index 2e8e0a8..cdda8bd 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -27,7 +27,6 @@
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_view.h"
#include "content/browser/webui/web_ui.h"
-#include "content/browser/webui/web_ui_util.h"
#include "ui/base/l10n/l10n_util.h"
#include "webkit/glue/webpreferences.h"
@@ -341,9 +340,12 @@ void CloudPrintFlowHandler::HandleSendPrintData(const ListValue* args) {
}
void CloudPrintFlowHandler::HandleSetPageParameters(const ListValue* args) {
- std::string json(web_ui_util::GetJsonResponseFromFirstArgumentInList(args));
- if (json.empty())
+ std::string json;
+ args->GetString(0, &json);
+ if (json.empty()) {
+ NOTREACHED() << "Empty json string";
return;
+ }
// These are backstop default values - 72 dpi to match the screen,
// 8.5x11 inch paper with margins subtracted (1/4 inch top, left,