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

Unified Diff: content/browser/tracing/background_tracing_config_impl.h

Issue 2752533003: Remove ScopedVector from content/browser/. (Closed)
Patch Set: Created 3 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: content/browser/tracing/background_tracing_config_impl.h
diff --git a/content/browser/tracing/background_tracing_config_impl.h b/content/browser/tracing/background_tracing_config_impl.h
index c006958edcd9ca7b1e1cc5584efcabd1a35771bf..58ed5e87287579dd42fad87f10c69828c7f5a35a 100644
--- a/content/browser/tracing/background_tracing_config_impl.h
+++ b/content/browser/tracing/background_tracing_config_impl.h
@@ -5,9 +5,11 @@
#ifndef CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_
#define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_CONFIG_IMPL_H_
+#include <memory>
+#include <vector>
+
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "content/common/content_export.h"
#include "content/public/browser/background_tracing_config.h"
@@ -43,7 +45,9 @@ class CONTENT_EXPORT BackgroundTracingConfigImpl
category_preset_ = category_preset;
}
- const ScopedVector<BackgroundTracingRule>& rules() const { return rules_; }
+ const std::vector<std::unique_ptr<BackgroundTracingRule>>& rules() const {
+ return rules_;
+ }
const std::string& scenario_name() const { return scenario_name_; }
const std::string& enable_blink_features() const {
return enable_blink_features_;
@@ -76,7 +80,7 @@ class CONTENT_EXPORT BackgroundTracingConfigImpl
ValidPreemptiveConfigToString);
CategoryPreset category_preset_;
- ScopedVector<BackgroundTracingRule> rules_;
+ std::vector<std::unique_ptr<BackgroundTracingRule>> rules_;
std::string scenario_name_;
std::string enable_blink_features_;
std::string disable_blink_features_;

Powered by Google App Engine
This is Rietveld 408576698