We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1414434 commit 30e15deCopy full SHA for 30e15de
browser/component_updater/brave_component_updater_configurator.cc
@@ -63,9 +63,12 @@ BraveConfigurator::BraveConfigurator(
63
pref_service),
64
nullptr)),
65
url_loader_factory_(std::move(url_loader_factory)) {
66
- base::FilePath path = base::PathService::CheckedGet(chrome::DIR_USER_DATA);
+ base::FilePath path;
67
+ bool result = base::PathService::Get(chrome::DIR_USER_DATA, &path);
68
crx_cache_ = base::MakeRefCounted<update_client::CrxCache>(
- path.AppendASCII("component_crx_cache"));
69
+ result ? std::optional<base::FilePath>(
70
+ path.AppendASCII("component_crx_cache"))
71
+ : std::nullopt);
72
}
73
74
BraveConfigurator::~BraveConfigurator() = default;
0 commit comments