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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 10905006: Get semantic capabilities from Print Backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « chrome/browser/printing/print_system_task_proxy_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
===================================================================
--- chrome/browser/ui/webui/print_preview/print_preview_handler.cc (revision 153539)
+++ chrome/browser/ui/webui/print_preview/print_preview_handler.cc (working copy)
@@ -7,7 +7,6 @@
#include <ctype.h>
#include <string>
-#include <vector>
#include "base/base64.h"
#include "base/bind.h"
@@ -763,16 +762,8 @@
void PrintPreviewHandler::SendPrinterCapabilities(
const DictionaryValue& settings_info) {
VLOG(1) << "Get printer capabilities finished";
- // Copy so we can override with sticky values.
- scoped_ptr<DictionaryValue> settings(settings_info.DeepCopy());
- if (GetStickySettings()->color_model() != printing::UNKNOWN_COLOR_MODEL) {
- settings->SetBoolean(
- printing::kSettingSetColorAsDefault,
- printing::isColorModelSelected(
- GetStickySettings()->color_model()));
- }
web_ui()->CallJavascriptFunction("updateWithPrinterCapabilities",
- *settings);
+ settings_info);
}
void PrintPreviewHandler::SendFailedToGetPrinterCapabilities(
« no previous file with comments | « chrome/browser/printing/print_system_task_proxy_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698