Add patch to fix crash in DomStorageArea::CommitChanges, try #2 (issue #809).

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1180@942 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-12-05 23:15:04 +00:00
parent 60452f205f
commit 4f03c4d1a4

View File

@@ -9,7 +9,7 @@ Index: dom_storage_area.cc
- bool success = backing_->CommitChanges(commit_batch->clear_all_first, - bool success = backing_->CommitChanges(commit_batch->clear_all_first,
- commit_batch->changed_values); - commit_batch->changed_values);
+ bool success = false; + bool success = false;
+ if (backing_.get()) { + if (backing_.get() && commit_batch) {
+ success = backing_->CommitChanges(commit_batch->clear_all_first, + success = backing_->CommitChanges(commit_batch->clear_all_first,
+ commit_batch->changed_values); + commit_batch->changed_values);
+ } + }