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

Unified Diff: content/browser/site_instance_impl_unittest.cc

Issue 10908027: Fix an AppCacheStorageImpl leak in SiteInstanceTest.SiteInstanceDestructor by running the message l… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_instance_impl_unittest.cc
===================================================================
--- content/browser/site_instance_impl_unittest.cc (revision 154214)
+++ content/browser/site_instance_impl_unittest.cc (working copy)
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <string>
+#include <vector>
+
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/stl_util.h"
@@ -82,8 +85,7 @@
}
};
-class SiteInstanceTestBrowserClient :
- public content::TestContentBrowserClient {
+class SiteInstanceTestBrowserClient : public content::TestContentBrowserClient {
public:
SiteInstanceTestBrowserClient()
: privileged_process_id_(-1) {
@@ -135,6 +137,8 @@
content::GetContentClient()->set_browser_for_testing(old_browser_client_);
content::SetContentClient(old_client_);
+
+ DrainMessageLoops();
awong 2012/09/05 21:30:09 This previously wasn't in TearDown() because the B
Lei Zhang 2012/09/06 00:29:43 I can tell you with this cl, there are no valgrind
}
void set_privileged_process_id(int process_id) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698