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

Unified Diff: chrome/browser/ui/webui/policy_ui_handler.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/policy_ui_handler.cc
diff --git a/chrome/browser/ui/webui/policy_ui_handler.cc b/chrome/browser/ui/webui/policy_ui_handler.cc
index a18f2e59a7258bc8e505402bf98daf595d618d6e..9d8f944498d3e9f297e839b0b86e04a52d171e7c 100644
--- a/chrome/browser/ui/webui/policy_ui_handler.cc
+++ b/chrome/browser/ui/webui/policy_ui_handler.cc
@@ -173,13 +173,13 @@ void ExtractDomainFromUsername(base::DictionaryValue* dict) {
}
// Utility function that returns a JSON serialization of the given |dict|.
-std::unique_ptr<base::StringValue> DictionaryToJSONString(
+std::unique_ptr<base::Value> DictionaryToJSONString(
const base::DictionaryValue& dict) {
std::string json_string;
base::JSONWriter::WriteWithOptions(dict,
base::JSONWriter::OPTIONS_PRETTY_PRINT,
&json_string);
- return base::MakeUnique<base::StringValue>(json_string);
+ return base::MakeUnique<base::Value>(json_string);
}
// Returns a copy of |value| with some values converted to a representation that
« no previous file with comments | « chrome/browser/ui/webui/policy_ui_browsertest.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698