Index: chrome/browser/extensions/api/cookies/cookies_api.cc |
diff --git a/chrome/browser/extensions/api/cookies/cookies_api.cc b/chrome/browser/extensions/api/cookies/cookies_api.cc |
index 4939ff28c039fe0ce44ac5a21d8aecaa683cdd06..cee1a77fd54341bdef6a46ba4e7ba49e0b11f67e 100644 |
--- a/chrome/browser/extensions/api/cookies/cookies_api.cc |
+++ b/chrome/browser/extensions/api/cookies/cookies_api.cc |
@@ -13,6 +13,7 @@ |
#include "base/bind.h" |
#include "base/json/json_writer.h" |
#include "base/lazy_instance.h" |
+#include "base/memory/ptr_util.h" |
#include "base/time/time.h" |
#include "base/values.h" |
#include "chrome/browser/chrome_notification_types.h" |
@@ -258,7 +259,7 @@ void CookiesGetFunction::GetCookieCallback(const net::CookieList& cookie_list) { |
// The cookie doesn't exist; return null. |
if (!results_) |
- SetResult(base::Value::CreateNullValue()); |
+ SetResult(base::MakeUnique<base::Value>()); |
bool rv = BrowserThread::PostTask( |
BrowserThread::UI, FROM_HERE, |