| Index: chrome/browser/ui/browser_window_state.cc
|
| diff --git a/chrome/browser/ui/browser_window_state.cc b/chrome/browser/ui/browser_window_state.cc
|
| index 54f3544c32cf78f42ed58861a29041652289e99a..e7eb1923632561cf30d5d02fa0bad2b09843e7b8 100644
|
| --- a/chrome/browser/ui/browser_window_state.cc
|
| +++ b/chrome/browser/ui/browser_window_state.cc
|
| @@ -5,8 +5,6 @@
|
| #include "chrome/browser/ui/browser_window_state.h"
|
|
|
| #include <stddef.h>
|
| -
|
| -#include <utility>
|
|
|
| #include "base/command_line.h"
|
| #include "base/macros.h"
|
| @@ -58,13 +56,12 @@
|
|
|
| base::DictionaryValue* Get() override {
|
| base::DictionaryValue* all_apps_dict = DictionaryPrefUpdate::Get();
|
| - base::DictionaryValue* this_app_dict_weak = NULL;
|
| - if (!all_apps_dict->GetDictionary(window_name_, &this_app_dict_weak)) {
|
| - auto this_app_dict = base::MakeUnique<base::DictionaryValue>();
|
| - this_app_dict_weak = this_app_dict.get();
|
| - all_apps_dict->Set(window_name_, std::move(this_app_dict));
|
| + base::DictionaryValue* this_app_dict = NULL;
|
| + if (!all_apps_dict->GetDictionary(window_name_, &this_app_dict)) {
|
| + this_app_dict = new base::DictionaryValue;
|
| + all_apps_dict->Set(window_name_, this_app_dict);
|
| }
|
| - return this_app_dict_weak;
|
| + return this_app_dict;
|
| }
|
|
|
| private:
|
|
|