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

Issue 2867143002: [sync] Check against nullptr web_data_backend->GetDatabase() (Closed)

Created:
3 years, 7 months ago by Patrick Noland
Modified:
3 years, 7 months ago
Reviewers:
Mathieu, skym
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[sync] Check against nullptr web_data_backend->GetDatabase() If there is a problem with the web_data_backend databaseat startup (for example, a version incompatibility), GetDatabase() can return nullptr. This change guards against that. BUG=719281 R=skym@chromium.org Review-Url: https://codereview.chromium.org/2867143002 Cr-Commit-Position: refs/heads/master@{#470370} Committed: https://chromium.googlesource.com/chromium/src/+/4cfcbe6a7b34e0eb45b4e789b5165ffd75ee243b

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : [sync] Check against nullptr web_data_backend->GetDatabase() #

Patch Set 4 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -6 lines) Patch
M components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autocomplete_sync_bridge_unittest.cc View 1 2 3 chunks +11 lines, -3 lines 0 comments Download
M components/sync/model/recording_model_type_change_processor.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/sync/model/recording_model_type_change_processor.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
Patrick Noland
Sky, PTAL I'm pretty sure the test failure is unrelated; it's an Android CustomTabActivity test ...
3 years, 7 months ago (2017-05-08 22:01:13 UTC) #9
skym
lgtm https://codereview.chromium.org/2867143002/diff/20001/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc File components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc (right): https://codereview.chromium.org/2867143002/diff/20001/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc#newcode397 components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc:397: if (!GetAutofillTable()->GetAllAutofillEntries(&entries)) { We're still going to crash ...
3 years, 7 months ago (2017-05-08 22:22:13 UTC) #10
Patrick Noland
+mathp@ for OWNERS review https://codereview.chromium.org/2867143002/diff/20001/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc File components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc (right): https://codereview.chromium.org/2867143002/diff/20001/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc#newcode397 components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc:397: if (!GetAutofillTable()->GetAllAutofillEntries(&entries)) { On 2017/05/08 ...
3 years, 7 months ago (2017-05-08 22:36:33 UTC) #14
Mathieu
lgtm, please send autofill reviews to rogerm@ from now on
3 years, 7 months ago (2017-05-08 23:34:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2867143002/60001
3 years, 7 months ago (2017-05-09 16:42:05 UTC) #23
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 17:37:47 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4cfcbe6a7b34e0eb45b4e789b516...

Powered by Google App Engine
This is Rietveld 408576698