diff --git a/atom/browser/mac/dict_util.h b/atom/browser/mac/dict_util.h index 404636d1901a..3ffd8ba51006 100644 --- a/atom/browser/mac/dict_util.h +++ b/atom/browser/mac/dict_util.h @@ -10,7 +10,7 @@ #include "base/memory/scoped_ptr.h" namespace base { -class Value; +class ListValue; class DictionaryValue; } @@ -21,6 +21,8 @@ NSDictionary* DictionaryValueToNSDictionary(const base::DictionaryValue& value); std::unique_ptr NSDictionaryToDictionaryValue( NSDictionary* dict); +std::unique_ptr NSArrayToListValue(NSArray* arr); + } // namespace atom #endif // ATOM_BROWSER_MAC_DICT_UTIL_H_ diff --git a/atom/browser/mac/dict_util.mm b/atom/browser/mac/dict_util.mm index 43b629cc32be..8692f001f6a8 100644 --- a/atom/browser/mac/dict_util.mm +++ b/atom/browser/mac/dict_util.mm @@ -10,8 +10,6 @@ namespace atom { -namespace { - std::unique_ptr NSArrayToListValue(NSArray* arr) { if (!arr) return nullptr; @@ -51,8 +49,6 @@ std::unique_ptr NSArrayToListValue(NSArray* arr) { return result; } -} // namespace - NSDictionary* DictionaryValueToNSDictionary(const base::DictionaryValue& value) { std::string json; if (!base::JSONWriter::Write(value, &json))