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

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

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/declarative_content_css_condition_tracker.h
diff --git a/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h b/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h
index 76317ff43a8c46e1291c148aa30ee7873b0157c0..bf0fc7bdbea7dc02218468fa47418634115a3862 100644
--- a/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h
+++ b/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_DECLARATIVE_CONTENT_CSS_CONDITION_TRACKER_H_
#include <map>
+#include <memory>
#include <set>
#include <string>
#include <vector>
@@ -14,7 +15,6 @@
#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/extensions/api/declarative_content/content_predicate_evaluator.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -44,7 +44,7 @@ class DeclarativeContentCssPredicate : public ContentPredicate {
return css_selectors_;
}
- static scoped_ptr<DeclarativeContentCssPredicate> Create(
+ static std::unique_ptr<DeclarativeContentCssPredicate> Create(
ContentPredicateEvaluator* evaluator,
const base::Value& value,
std::string* error);
@@ -74,7 +74,7 @@ class DeclarativeContentCssConditionTracker
// ContentPredicateEvaluator:
std::string GetPredicateApiAttributeName() const override;
- scoped_ptr<const ContentPredicate> CreatePredicate(
+ std::unique_ptr<const ContentPredicate> CreatePredicate(
const Extension* extension,
const base::Value& value,
std::string* error) override;

Powered by Google App Engine
This is Rietveld 408576698