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

Issue 10824008: Annotate calls to SQLite functions - they have to be executed on a thread allowing IO access. (Closed)

Created:
8 years, 5 months ago by pivanof
Modified:
8 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Annotate calls to SQLite functions - they have to be executed on a thread allowing IO access. Also expanded scope of ScopedAllowIO in SQLiteServerBoundCertStore::Backend::Load() to cover SQLite functions. And added ScopedAllowIO to PasswordStoreFactory::BuildServiceInstanceFor() -- it calls LoginDatabase::Init() which should be executed on DB thread. This is a reland of https://src.chromium.org/viewvc/chrome?view=rev&revision=147309 which was reverted because of missing ScopedAllowIO in PasswordStoreFactory. Patch from Pavel Ivanov <paivanof@gmail.com>; BUG=75232, 52909, 137961, 138903 TEST=no test fails with message "Function marked as IO-only was called from a thread that disallows IO!" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148788

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -15 lines) Patch
M chrome/browser/net/sqlite_server_bound_cert_store.cc View 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 1 chunk +9 lines, -4 lines 0 comments Download
M sql/connection.h View 5 chunks +18 lines, -1 line 0 comments Download
M sql/connection.cc View 10 chunks +28 lines, -1 line 0 comments Download
M sql/statement.cc View 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
pivanof
shess: please triage and CC http://crbug.com/138903 appropriately. And you'll need to commit this manually again. ...
8 years, 5 months ago (2012-07-25 04:58:15 UTC) #1
Mike Mammarella
PasswordStoreFactory change LGTM On 2012/07/25 04:58:15, pivanof wrote: > shess: please triage and CC http://crbug.com/138903 ...
8 years, 5 months ago (2012-07-25 21:18:24 UTC) #2
pivanof
mdm: I've just realized that you are probably a better person to triage http://crbug.com/138903 appropriately. ...
8 years, 5 months ago (2012-07-25 21:25:53 UTC) #3
Scott Hess - ex-Googler
I have a client all set up for landing this manually tomorrow. I double-checked the ...
8 years, 5 months ago (2012-07-27 00:54:37 UTC) #4
pivanof
On 2012/07/27 00:54:37, shess wrote: > I double-checked > the diffs from the earlier CL, ...
8 years, 5 months ago (2012-07-27 01:09:25 UTC) #5
Scott Hess - ex-Googler
I've landed this, but I seem to recall that last time it took a few ...
8 years, 4 months ago (2012-07-27 20:01:32 UTC) #6
Mike Mammarella
Sorry for the delay. I've marked the new bug as fixed. Previously I've heard very ...
8 years, 4 months ago (2012-07-27 20:07:42 UTC) #7
pivanof
8 years, 4 months ago (2012-07-27 20:12:59 UTC) #8
On 2012/07/27 20:07:42, Mike Mammarella wrote:
> Sorry for the delay. I've marked the new bug as fixed.

No, it's not fixed. It should be fixed only when ScopedAllowIO (added here) is
removed. I've asked to triage it meaning to set appropriate status, CCs and
maybe owner who have enough knowledge to fix it later. Also I think it should be
blocking http://crbug.com/119550.

Powered by Google App Engine
This is Rietveld 408576698