summaryrefslogtreecommitdiff
path: root/chromium/components/prefs/pref_member.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/prefs/pref_member.cc')
-rw-r--r--chromium/components/prefs/pref_member.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/components/prefs/pref_member.cc b/chromium/components/prefs/pref_member.cc
index 4051e5cbb24..a53394f6ff8 100644
--- a/chromium/components/prefs/pref_member.cc
+++ b/chromium/components/prefs/pref_member.cc
@@ -10,7 +10,7 @@
#include "base/callback_helpers.h"
#include "base/location.h"
#include "base/threading/sequenced_task_runner_handle.h"
-#include "base/value_conversions.h"
+#include "base/util/values/values_util.h"
#include "components/prefs/pref_service.h"
using base::SequencedTaskRunner;
@@ -200,7 +200,11 @@ template <>
bool PrefMember<base::FilePath>::Internal::UpdateValueInternal(
const base::Value& value)
const {
- return base::GetValueAsFilePath(value, &value_);
+ base::Optional<base::FilePath> path = util::ValueToFilePath(value);
+ if (!path)
+ return false;
+ value_ = *path;
+ return true;
}
template <>