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

Issue 1286273004: Rename is_chromeos in sqlite. (Closed)

Created:
5 years, 4 months ago by Peter Mayo
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename is_chromeos in sqlite. is_chromeos does a poor job of distinguishing developer builds of chrome for chromeos for your desktop, and chrome for chromeos on a device (where the runtimes are non local, for example) Split this into is_chromeos_ui and is_chromeos_os. BUG=519943 TEST=ChromiumOS compiles equivalently.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review optimization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M third_party/sqlite/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
Peter Mayo
Dependent on https://codereview.chromium.org/1283313004/ upload suggested shess@ as a reviewer
5 years, 4 months ago (2015-08-13 01:21:26 UTC) #1
Scott Hess - ex-Googler
https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn File third_party/sqlite/BUILD.gn (right): https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn#newcode34 third_party/sqlite/BUILD.gn:34: if (is_chromeos_ui) { I read the other CL, and ...
5 years, 4 months ago (2015-08-13 18:00:49 UTC) #3
Peter Mayo
Address review optimization
5 years, 4 months ago (2015-08-13 18:20:00 UTC) #4
Peter Mayo
https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn File third_party/sqlite/BUILD.gn (right): https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn#newcode34 third_party/sqlite/BUILD.gn:34: if (is_chromeos_ui) { On 2015/08/13 18:00:49, Scott Hess wrote: ...
5 years, 4 months ago (2015-08-13 18:20:35 UTC) #5
Peter Mayo
https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn File third_party/sqlite/BUILD.gn (right): https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn#newcode34 third_party/sqlite/BUILD.gn:34: if (is_chromeos_ui) { On 2015/08/13 18:00:49, Scott Hess wrote: ...
5 years, 4 months ago (2015-08-13 18:21:07 UTC) #6
Scott Hess - ex-Googler
lgtm https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn File third_party/sqlite/BUILD.gn (right): https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn#newcode34 third_party/sqlite/BUILD.gn:34: if (is_chromeos_ui) { On 2015/08/13 18:20:35, Peter Mayo ...
5 years, 4 months ago (2015-08-13 20:55:19 UTC) #7
Scott Hess - ex-Googler
5 years, 4 months ago (2015-08-17 20:04:38 UTC) #8
On 2015/08/13 20:55:19, Scott Hess wrote:
> lgtm
> 
> https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn
> File third_party/sqlite/BUILD.gn (right):
> 
>
https://codereview.chromium.org/1286273004/diff/1/third_party/sqlite/BUILD.gn...
> third_party/sqlite/BUILD.gn:34: if (is_chromeos_ui) {
> On 2015/08/13 18:20:35, Peter Mayo wrote:
> > At some point we start with goals, get mapped through build systems to
flags,
> > and then through source code to implementations.  How many of the
intermediate
> > steps get labels is a matter of judgement.  If the owners of SQLite want to
> add
> > an is_journalled_file_system flag here, whose default is set so that
chromeos
> > enables it where most others don't,  I'd be happy to write or review it in a
> > separate CL.
> 
> I don't think that would make sense, because the comment below isn't true. 
Just
> because the filesystem is journaled doesn't mean that it is providing the same
> guarantees that SQLite is attempting to maintain using fsync.  As best I
> understand things, ext4 journaling with data=journal _may_ provide those
> guarantees, but data=ordered doesn't, but whenever I try to dig deeply I find
> myself tangled in special cases which make even that uncertain.

To be clear, the above wasn't a comment intended to drive work right now in this
CL.  I just don't want to add build-config code implying that anyone has proven
that using SQLITE_NO_SYNC works right in SQLite on a journaled filesystem. 
SQLite doesn't make that guarantee, so I'm certainly not willing to.

Powered by Google App Engine
This is Rietveld 408576698