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

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

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)
Patch Set: Rebase Created 3 years, 8 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/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index f22ec21c31edb955798a638f74905ae4002f377c..8ab3ddd53057ed58b09fc5ba6d62b5c18a8ac284 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -1311,7 +1311,7 @@ void PrintPreviewHandler::SendPrinterSetup(
std::unique_ptr<base::DictionaryValue> destination_info) {
auto response = base::MakeUnique<base::DictionaryValue>();
bool success = true;
- auto caps_value = base::Value::CreateNullValue();
+ auto caps_value = base::MakeUnique<base::Value>();
auto caps = base::MakeUnique<base::DictionaryValue>();
if (destination_info &&
destination_info->Remove(printing::kPrinterCapabilities, &caps_value) &&
« no previous file with comments | « chrome/browser/ui/webui/options/core_options_handler.cc ('k') | chrome/browser/ui/webui/settings/about_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698