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

Unified Diff: content/browser/plugin_data_remover_impl_browsertest.cc

Issue 12087120: Revert 179987 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | content/browser/plugin_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_data_remover_impl_browsertest.cc
===================================================================
--- content/browser/plugin_data_remover_impl_browsertest.cc (revision 179992)
+++ content/browser/plugin_data_remover_impl_browsertest.cc (working copy)
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "base/base_paths.h"
-#include "base/callback.h"
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/synchronization/waitable_event_watcher.h"
@@ -20,11 +19,12 @@
const char* kNPAPITestPluginMimeType = "application/vnd.npapi-test";
}
-class PluginDataRemoverTest : public ContentBrowserTest {
+class PluginDataRemoverTest : public ContentBrowserTest,
+ public base::WaitableEventWatcher::Delegate {
public:
PluginDataRemoverTest() {}
- void OnWaitableEventSignaled(base::WaitableEvent* waitable_event) {
+ virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event) {
MessageLoop::current()->Quit();
}
@@ -51,9 +51,7 @@
base::WaitableEventWatcher watcher;
base::WaitableEvent* event =
plugin_data_remover.StartRemoving(base::Time());
- watcher.StartWatching(
- event,
- base::Bind(&PluginDataRemoverTest::OnWaitableEventSignaled, this));
+ watcher.StartWatching(event, this);
RunMessageLoop();
}
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | content/browser/plugin_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698