Bug 43035

Summary: [Chromium] Make Chromium compile with ENABLE_DATABASE=0
Product: WebKit Reporter: Dumitru Daniliuc <dumi>
Component: New BugsAssignee: Dumitru Daniliuc <dumi>
Status: RESOLVED FIXED    
Severity: Normal CC: levin, michaeln
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch
dumi: commit-queue-
patch levin: review+, dumi: commit-queue-

Description Dumitru Daniliuc 2010-07-27 03:03:09 PDT
We need to move all WebSQLDatabases code behind #if ENABLE(DATABASE) and make Chromium compile with ENABLE_DATABASE=0.
Comment 1 Dumitru Daniliuc 2010-07-27 11:34:01 PDT
Created attachment 62717 [details]
patch
Comment 2 David Levin 2010-07-27 12:13:01 PDT
I would be happy to r+ this except I can't figure out why various files have the ifdef's removed. (Beating a dead horse, some very short ChangeLog comments would be helpful in explaining this.)
Comment 3 Dumitru Daniliuc 2010-07-27 12:23:35 PDT
(In reply to comment #2)
> I would be happy to r+ this except I can't figure out why various files have the ifdef's removed. (Beating a dead horse, some very short ChangeLog comments would be helpful in explaining this.)

there's a layer of "general" DB classes in WebCore/platform/sql/, and then a layer of HTML5 DB classes in WebCore/storage/. DatabaseAuthorizer.cpp and ChromiumBridge.{h|cpp} are used by the "general" DB classes, which are used by other features too (like Geolocation). so those functions need to be compiled in even when HTML5 DBs are turned off.

i'll add this to the ChangeLog comments and re-upload the patch in a second.
Comment 4 Dumitru Daniliuc 2010-07-27 12:29:16 PDT
Created attachment 62726 [details]
patch
Comment 5 Dumitru Daniliuc 2010-07-27 18:08:50 PDT
landed: r64151.
Comment 6 Dumitru Daniliuc 2010-07-27 18:09:13 PDT
landed: r64151.