Index: chrome/browser/ui/webui/chromeos/login/base_webui_handler.cc |
diff --git a/chrome/browser/ui/webui/chromeos/login/base_webui_handler.cc b/chrome/browser/ui/webui/chromeos/login/base_webui_handler.cc |
index 3bae474ca267dbc62251c524b32294e20a277cd8..aca69389faf6097b6523321f7066bbb1f81fadf5 100644 |
--- a/chrome/browser/ui/webui/chromeos/login/base_webui_handler.cc |
+++ b/chrome/browser/ui/webui/chromeos/login/base_webui_handler.cc |
@@ -78,8 +78,10 @@ void BaseWebUIHandler::ShowScreenWithData(OobeScreen screen, |
return; |
base::DictionaryValue screen_params; |
screen_params.SetString("id", GetOobeScreenName(screen)); |
- if (data) |
- screen_params.SetWithoutPathExpansion("data", data->DeepCopy()); |
+ if (data) { |
+ screen_params.SetWithoutPathExpansion("data", |
+ base::MakeUnique<base::Value>(*data)); |
+ } |
web_ui()->CallJavascriptFunctionUnsafe("cr.ui.Oobe.showScreen", |
screen_params); |
} |