Skip to content

Commit 30e15de

Browse files
committed
fixup! [cr138] Incorporate changes to CrxCache lifetime
1 parent 1414434 commit 30e15de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

browser/component_updater/brave_component_updater_configurator.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ BraveConfigurator::BraveConfigurator(
6363
pref_service),
6464
nullptr)),
6565
url_loader_factory_(std::move(url_loader_factory)) {
66-
base::FilePath path = base::PathService::CheckedGet(chrome::DIR_USER_DATA);
66+
base::FilePath path;
67+
bool result = base::PathService::Get(chrome::DIR_USER_DATA, &path);
6768
crx_cache_ = base::MakeRefCounted<update_client::CrxCache>(
68-
path.AppendASCII("component_crx_cache"));
69+
result ? std::optional<base::FilePath>(
70+
path.AppendASCII("component_crx_cache"))
71+
: std::nullopt);
6972
}
7073

7174
BraveConfigurator::~BraveConfigurator() = default;

0 commit comments

Comments
 (0)