Commit 3257bb21 authored by jwd@chromium.org's avatar jwd@chromium.org

Readding null checks for the set of extensions returned by GetInstalledExtensions.

BUG=404187

Review URL: https://codereview.chromium.org/478753002

Cr-Commit-Position: refs/heads/master@{#290031}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290031 0039d316-1c4b-4281-b951-d872f2087c98
parent e0808f7d
......@@ -193,6 +193,8 @@ void ExtensionsMetricsProvider::ProvideOffStoreMetric(
scoped_ptr<extensions::ExtensionSet> extensions(
GetInstalledExtensions(profiles[i]));
if (!extensions)
continue;
// Combine the state from each profile, always favoring the higher state as
// defined by the order of ExtensionState.
......@@ -212,6 +214,8 @@ void ExtensionsMetricsProvider::ProvideOccupiedBucketMetric(
scoped_ptr<extensions::ExtensionSet> extensions(
GetInstalledExtensions(profile));
if (!extensions)
return;
const int client_key = GetClientID() % kExtensionListClientKeys;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment