Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1542)

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 1833053004: [Extensions] Convert APIs to use movable types [10] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
index d3affa917af13b09e4efebda8d28785c0d459a05..4bb451b76c0ff5f16a86eb769e246e941bdb09b7 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -519,18 +519,19 @@ void WebstorePrivateInstallBundleFunction::OnFetchComplete(
for (const auto& entry : params_->contents) {
// Skip already-installed items.
bool is_installed =
- extensions::ExtensionRegistry::Get(browser_context())->GetExtensionById(
- entry->id, extensions::ExtensionRegistry::EVERYTHING) != nullptr;
+ extensions::ExtensionRegistry::Get(browser_context())
+ ->GetExtensionById(
+ entry.id, extensions::ExtensionRegistry::EVERYTHING) != nullptr;
if (is_installed ||
- InstallTracker::Get(browser_context())->GetActiveInstall(entry->id)) {
+ InstallTracker::Get(browser_context())->GetActiveInstall(entry.id)) {
continue;
}
BundleInstaller::Item item;
- item.id = entry->id;
- item.manifest = entry->manifest;
- item.localized_name = entry->localized_name;
- if (entry->icon_url)
- item.icon_url = source_url().Resolve(*entry->icon_url);
+ item.id = entry.id;
+ item.manifest = entry.manifest;
+ item.localized_name = entry.localized_name;
+ if (entry.icon_url)
+ item.icon_url = source_url().Resolve(*entry.icon_url);
items.push_back(item);
}
if (items.empty()) {

Powered by Google App Engine
This is Rietveld 408576698