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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher.cc

Issue 17915004: IndexedDB: Remove uses of WebKit API types from back-end code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
Index: content/child/indexed_db/indexed_db_dispatcher.cc
diff --git a/content/child/indexed_db/indexed_db_dispatcher.cc b/content/child/indexed_db/indexed_db_dispatcher.cc
index edd64cf252b8153b1b48ff5cc6d17c92a0f47b8e..b6e57ea07d12d5b27e55825dfef2514543cd715f 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher.cc
@@ -643,7 +643,10 @@ void IndexedDBDispatcher::OnError(int32 ipc_thread_id,
WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(ipc_callbacks_id);
if (!callbacks)
return;
- callbacks->onError(WebIDBDatabaseError(code, message));
+ if (message.empty())
+ callbacks->onError(WebIDBDatabaseError(code));
+ else
+ callbacks->onError(WebIDBDatabaseError(code, message));
pending_callbacks_.Remove(ipc_callbacks_id);
}
@@ -657,7 +660,10 @@ void IndexedDBDispatcher::OnAbort(int32 ipc_thread_id,
pending_database_callbacks_.Lookup(ipc_database_callbacks_id);
if (!callbacks)
return;
- callbacks->onAbort(transaction_id, WebIDBDatabaseError(code, message));
+ if (message.empty())
+ callbacks->onAbort(transaction_id, WebIDBDatabaseError(code));
+ else
+ callbacks->onAbort(transaction_id, WebIDBDatabaseError(code, message));
}
void IndexedDBDispatcher::OnComplete(int32 ipc_thread_id,
« no previous file with comments | « content/browser/indexed_db/webidbfactory_impl.cc ('k') | content/child/indexed_db/proxy_webidbcursor_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698