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

Unified Diff: webkit/tools/test_shell/simple_appcache_system.cc

Issue 5091005: FBTF: Remove unneeded headers from base/ (part 9) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win build Created 10 years, 1 month 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 | « webkit/glue/plugins/pepper_plugin_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_appcache_system.cc
===================================================================
--- webkit/tools/test_shell/simple_appcache_system.cc (revision 66704)
+++ webkit/tools/test_shell/simple_appcache_system.cc (working copy)
@@ -4,8 +4,10 @@
#include "webkit/tools/test_shell/simple_appcache_system.h"
+#include <string>
+#include <vector>
+
#include "base/callback.h"
-#include "base/lock.h"
#include "base/task.h"
#include "base/waitable_event.h"
#include "webkit/appcache/appcache_interceptor.h"
@@ -63,15 +65,15 @@
const appcache::AppCacheInfo& info) {
if (!system_)
return;
- if (system_->is_io_thread())
+ if (system_->is_io_thread()) {
system_->ui_message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
this, &SimpleFrontendProxy::OnCacheSelected,
host_id, info));
- else if (system_->is_ui_thread()) {
+ } else if (system_->is_ui_thread()) {
system_->frontend_impl_.OnCacheSelected(host_id, info);
+ } else {
+ NOTREACHED();
}
- else
- NOTREACHED();
}
virtual void OnStatusChanged(const std::vector<int>& host_ids,
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698