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

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

Issue 2910007: Report an error message when an update job results in an error. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « webkit/appcache/web_application_cache_host_impl.cc ('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 52160)
+++ webkit/tools/test_shell/simple_appcache_system.cc (working copy)
@@ -115,6 +115,21 @@
NOTREACHED();
}
+ virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
+ const std::string& message) {
+ if (!system_)
+ return;
+ if (system_->is_io_thread())
+ system_->ui_message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
+ this, &SimpleFrontendProxy::OnErrorEventRaised,
+ host_ids, message));
+ else if (system_->is_ui_thread())
+ system_->frontend_impl_.OnErrorEventRaised(
+ host_ids, message);
+ else
+ NOTREACHED();
+ }
+
virtual void OnLogMessage(int host_id,
appcache::LogLevel log_level,
const std::string& message) {
« no previous file with comments | « webkit/appcache/web_application_cache_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698