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

Unified Diff: chrome/browser/ui/webui/options/core_options_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/options/core_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/core_options_handler.cc b/chrome/browser/ui/webui/options/core_options_handler.cc
index 71ba099b3abd1d977c5ad06905060bfb23220540..c7098cabd8c335b5010e0c99474886e748193a41 100644
--- a/chrome/browser/ui/webui/options/core_options_handler.cc
+++ b/chrome/browser/ui/webui/options/core_options_handler.cc
@@ -372,7 +372,7 @@ base::Value* CoreOptionsHandler::CreateValueForPref(
pref_service->FindPreference(pref_name);
if (!pref) {
NOTREACHED();
- return base::Value::CreateNullValue().release();
+ return new base::Value();
}
const PrefService::Preference* controlling_pref =
pref_service->FindPreference(controlling_pref_name);

Powered by Google App Engine
This is Rietveld 408576698