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

Unified Diff: chrome/browser/extensions/api/declarative_content/content_condition.h

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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/content_condition.h
diff --git a/chrome/browser/extensions/api/declarative_content/content_condition.h b/chrome/browser/extensions/api/declarative_content/content_condition.h
index 162631d8dc6d3a12fcfe4c7397a9911543855131..0adea940ee658098feb55d72bc2cdcea48613f84 100644
--- a/chrome/browser/extensions/api/declarative_content/content_condition.h
+++ b/chrome/browser/extensions/api/declarative_content/content_condition.h
@@ -81,14 +81,14 @@ class ContentCondition {
// If this Condition has a url filter, appends it to |condition_sets|.
void GetURLMatcherConditionSets(
URLMatcherConditionSet::Vector* condition_sets) const {
- if (url_matcher_conditions_)
+ if (url_matcher_conditions_.get())
condition_sets->push_back(url_matcher_conditions_);
}
// True if GetURLMatcherConditionSets would append anything to its
// argument.
bool has_url_matcher_condition_set() const {
- return url_matcher_conditions_ != NULL;
+ return url_matcher_conditions_.get() != NULL;
}
// Returns the CSS selectors required to match by this condition.

Powered by Google App Engine
This is Rietveld 408576698