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

Unified Diff: chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc

Issue 1854993002: [Extensions] Remove linked_ptr entirely from extensions generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/declarative_content/chrome_content_rules_registry.cc
diff --git a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
index a80fc25909fe5186c82afb2b75ad582e812ca51b..4b99dc0b6097b89412010207ee8840c608c1fd84 100644
--- a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
+++ b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
@@ -164,7 +164,7 @@ ChromeContentRulesRegistry::CreateRule(
const api::events::Rule& api_rule,
std::string* error) {
std::vector<scoped_ptr<const ContentCondition>> conditions;
- for (const linked_ptr<base::Value>& value : api_rule.conditions) {
+ for (const scoped_ptr<base::Value>& value : api_rule.conditions) {
conditions.push_back(
CreateContentCondition(extension, predicate_factories, *value, error));
if (!error->empty())
@@ -172,7 +172,7 @@ ChromeContentRulesRegistry::CreateRule(
}
std::vector<scoped_ptr<const ContentAction>> actions;
- for (const linked_ptr<base::Value>& value : api_rule.actions) {
+ for (const scoped_ptr<base::Value>& value : api_rule.actions) {
actions.push_back(ContentAction::Create(browser_context(), extension,
*value, error));
if (!error->empty())

Powered by Google App Engine
This is Rietveld 408576698