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, |