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

Unified Diff: content/browser/indexed_db/indexed_db_transaction.cc

Issue 311263014: IndexedDB: Fix trivial cpplint.py errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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/browser/indexed_db/indexed_db_transaction.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
index 4fb4c24f9ce4e799b166e052d972df52daaf9fd5..c7689b75e477b9092f46288d29d290aa932743fe 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -209,7 +209,8 @@ void IndexedDBTransaction::Start() {
class BlobWriteCallbackImpl : public IndexedDBBackingStore::BlobWriteCallback {
public:
- BlobWriteCallbackImpl(scoped_refptr<IndexedDBTransaction> transaction)
+ explicit BlobWriteCallbackImpl(
+ scoped_refptr<IndexedDBTransaction> transaction)
: transaction_(transaction) {}
virtual void Run(bool succeeded) OVERRIDE {
transaction_->BlobWriteComplete(succeeded);
@@ -255,9 +256,9 @@ void IndexedDBTransaction::Commit() {
state_ = COMMITTING;
- if (!used_)
+ if (!used_) {
CommitPhaseTwo();
- else {
+ } else {
scoped_refptr<IndexedDBBackingStore::BlobWriteCallback> callback(
new BlobWriteCallbackImpl(this));
// CommitPhaseOne will call the callback synchronously if there are no blobs
« no previous file with comments | « content/browser/indexed_db/indexed_db_pending_connection.h ('k') | content/browser/indexed_db/indexed_db_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698