summaryrefslogtreecommitdiffstats
path: root/content/browser/webui
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-14 05:49:24 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-14 05:49:24 +0000
commit3aebfe0e2d969051727b56087c2bc9269d72a2f7 (patch)
tree0510eba7acbae0bea0eabaee5d4e206c6052eb65 /content/browser/webui
parent8bc51f082653130aa6c1ac2f79b47bf038b2d300 (diff)
downloadchromium_src-3aebfe0e2d969051727b56087c2bc9269d72a2f7.zip
chromium_src-3aebfe0e2d969051727b56087c2bc9269d72a2f7.tar.gz
chromium_src-3aebfe0e2d969051727b56087c2bc9269d72a2f7.tar.bz2
[cleanup] STLDeleteContainerPointers->ScopedVector
R=sky@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/14701015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/webui')
-rw-r--r--content/browser/webui/web_ui_impl.cc2
-rw-r--r--content/browser/webui/web_ui_impl.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc
index 88b181b..9f45481 100644
--- a/content/browser/webui/web_ui_impl.cc
+++ b/content/browser/webui/web_ui_impl.cc
@@ -5,7 +5,6 @@
#include "content/browser/webui/web_ui_impl.h"
#include "base/json/json_writer.h"
-#include "base/stl_util.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "content/browser/child_process_security_policy_impl.h"
@@ -55,7 +54,6 @@ WebUIImpl::~WebUIImpl() {
// Delete the controller first, since it may also be keeping a pointer to some
// of the handlers and can call them at destruction.
controller_.reset();
- STLDeleteContainerPointers(handlers_.begin(), handlers_.end());
}
// WebUIImpl, public: ----------------------------------------------------------
diff --git a/content/browser/webui/web_ui_impl.h b/content/browser/webui/web_ui_impl.h
index 1be3674..de3059f 100644
--- a/content/browser/webui/web_ui_impl.h
+++ b/content/browser/webui/web_ui_impl.h
@@ -8,6 +8,7 @@
#include <map>
#include "base/compiler_specific.h"
+#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "content/public/browser/web_ui.h"
#include "ipc/ipc_listener.h"
@@ -91,7 +92,7 @@ class CONTENT_EXPORT WebUIImpl : public WebUI,
// this page.
// The WebUIMessageHandlers we own.
- std::vector<WebUIMessageHandler*> handlers_;
+ ScopedVector<WebUIMessageHandler> handlers_;
// Non-owning pointer to the WebContents this WebUI is associated with.
WebContents* web_contents_;