Index: chrome/browser/extensions/api/settings_private/settings_private_delegate.cc |
diff --git a/chrome/browser/extensions/api/settings_private/settings_private_delegate.cc b/chrome/browser/extensions/api/settings_private/settings_private_delegate.cc |
index 539f94b58cb704a6db7c77069d5a4f56c8ed4670..f043941329f6a329e32ec5dd366725f6fe897f47 100644 |
--- a/chrome/browser/extensions/api/settings_private/settings_private_delegate.cc |
+++ b/chrome/browser/extensions/api/settings_private/settings_private_delegate.cc |
@@ -6,6 +6,7 @@ |
#include <utility> |
+#include "base/memory/ptr_util.h" |
#include "base/values.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/chromeos/settings/cros_settings.h" |
@@ -36,7 +37,7 @@ std::unique_ptr<base::Value> SettingsPrivateDelegate::GetPref( |
std::unique_ptr<api::settings_private::PrefObject> pref = |
prefs_util_->GetPref(name); |
if (!pref) |
- return base::Value::CreateNullValue(); |
+ return base::MakeUnique<base::Value>(); |
return pref->ToValue(); |
} |