mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1180@942 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
19 lines
833 B
Diff
19 lines
833 B
Diff
Index: dom_storage_area.cc
|
|
===================================================================
|
|
--- dom_storage_area.cc (revision 157234)
|
|
+++ dom_storage_area.cc (working copy)
|
|
@@ -289,8 +289,11 @@
|
|
void DomStorageArea::CommitChanges(const CommitBatch* commit_batch) {
|
|
// This method executes on the commit sequence.
|
|
DCHECK(task_runner_->IsRunningOnCommitSequence());
|
|
- bool success = backing_->CommitChanges(commit_batch->clear_all_first,
|
|
- commit_batch->changed_values);
|
|
+ bool success = false;
|
|
+ if (backing_.get() && commit_batch) {
|
|
+ success = backing_->CommitChanges(commit_batch->clear_all_first,
|
|
+ commit_batch->changed_values);
|
|
+ }
|
|
DCHECK(success); // TODO(michaeln): what if it fails?
|
|
task_runner_->PostTask(
|
|
FROM_HERE,
|