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

Issue 1160243004: Add build flag to disable hotwording. (Closed)

Created:
5 years, 6 months ago by Anand Mistry (off Chromium)
Modified:
5 years, 6 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, rlp+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add build flag to disable hotwording. Hotwording downloads a shared module from the web store containing a NaCl module. There is a desire to build and distribute Chromium without this happening. This change adds an "enable_hotwording" build flag that is enabled by default, but can be disabled at compile time. BUG=491435 Committed: https://crrev.com/f269d3b548203e217e8c0080c2e22e7ae3efb51e Cr-Commit-Position: refs/heads/master@{#333548}

Patch Set 1 #

Patch Set 2 : Fix tests. #

Total comments: 2

Patch Set 3 : Review comments. #

Total comments: 2

Patch Set 4 : Remove space. #

Total comments: 2

Patch Set 5 : Review comment #

Total comments: 2

Patch Set 6 : Use GOOGLE_CHROME_BUILD macro. #

Patch Set 7 : Back to flag and enable by default. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service.cc View 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/search/hotword_service_unittest.cc View 1 6 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (3 generated)
Anand Mistry (off Chromium)
thestig@chromium.org: Please review changes in chrome/ scottmg@chromium.org: Please review changes in build/
5 years, 6 months ago (2015-06-03 04:58:39 UTC) #2
scottmg
https://codereview.chromium.org/1160243004/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1160243004/diff/20001/build/common.gypi#newcode2426 build/common.gypi:2426: ['branding=="Chrome" and buildtype=="Official"', { This should not be "and ...
5 years, 6 months ago (2015-06-03 05:16:13 UTC) #3
Anand Mistry (off Chromium)
https://codereview.chromium.org/1160243004/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1160243004/diff/20001/build/common.gypi#newcode2426 build/common.gypi:2426: ['branding=="Chrome" and buildtype=="Official"', { On 2015/06/03 05:16:13, scottmg wrote: ...
5 years, 6 months ago (2015-06-03 05:43:53 UTC) #4
scottmg
lgtm https://codereview.chromium.org/1160243004/diff/40001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1160243004/diff/40001/build/common.gypi#newcode2428 build/common.gypi:2428: 'enable_hotwording%' : 1, nit; no space before :
5 years, 6 months ago (2015-06-03 05:48:09 UTC) #5
Anand Mistry (off Chromium)
https://codereview.chromium.org/1160243004/diff/40001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1160243004/diff/40001/build/common.gypi#newcode2428 build/common.gypi:2428: 'enable_hotwording%' : 1, On 2015/06/03 05:48:08, scottmg wrote: > ...
5 years, 6 months ago (2015-06-03 22:54:08 UTC) #6
Lei Zhang
Shouldn't the CL description say "Chrome builds" instead of "official builds" ? Does Hotwords work ...
5 years, 6 months ago (2015-06-04 23:11:00 UTC) #7
Anand Mistry (off Chromium)
Edited description. And yes, hotwording does work for chromium builds, but it needs to download ...
5 years, 6 months ago (2015-06-05 00:12:50 UTC) #8
Lei Zhang
On 2015/06/05 00:12:50, Anand Mistry wrote: > Edited description. And yes, hotwording does work for ...
5 years, 6 months ago (2015-06-05 00:16:41 UTC) #9
Anand Mistry (off Chromium)
On 2015/06/05 00:16:41, Lei Zhang wrote: > On 2015/06/05 00:12:50, Anand Mistry wrote: > > ...
5 years, 6 months ago (2015-06-05 00:25:25 UTC) #10
Lei Zhang
On 2015/06/05 00:25:25, Anand Mistry wrote: > On 2015/06/05 00:16:41, Lei Zhang wrote: > > ...
5 years, 6 months ago (2015-06-05 01:09:44 UTC) #11
Lei Zhang
Now that I saw https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786909 and better understand the issue here, please mention the fact ...
5 years, 6 months ago (2015-06-05 03:13:47 UTC) #12
Anand Mistry (off Chromium)
https://codereview.chromium.org/1160243004/diff/80001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1160243004/diff/80001/build/common.gypi#newcode394 build/common.gypi:394: # 'Ok Google' hotwording is disabled by default. Set ...
5 years, 6 months ago (2015-06-05 03:58:19 UTC) #13
Lei Zhang
On 2015/06/05 03:58:19, Anand Mistry wrote: > https://codereview.chromium.org/1160243004/diff/80001/build/common.gypi > File build/common.gypi (right): > > https://codereview.chromium.org/1160243004/diff/80001/build/common.gypi#newcode394 ...
5 years, 6 months ago (2015-06-05 06:32:46 UTC) #14
Lei Zhang
On 2015/06/05 06:32:46, Lei Zhang wrote: > On 2015/06/05 03:58:19, Anand Mistry wrote: > > ...
5 years, 6 months ago (2015-06-05 06:44:47 UTC) #15
Anand Mistry (off Chromium)
On 2015/06/05 06:44:47, Lei Zhang wrote: > On 2015/06/05 06:32:46, Lei Zhang wrote: > > ...
5 years, 6 months ago (2015-06-09 01:13:10 UTC) #16
Lei Zhang
On 2015/06/09 01:13:10, Anand Mistry wrote: > Done, but I'm going to voice my opposition ...
5 years, 6 months ago (2015-06-09 01:34:04 UTC) #17
Lei Zhang
+pkasting for discussion on adding a new switch. ^
5 years, 6 months ago (2015-06-09 01:34:47 UTC) #18
Peter Kasting
On 2015/06/09 01:34:04, Lei Zhang wrote: > On 2015/06/09 01:13:10, Anand Mistry wrote: > > ...
5 years, 6 months ago (2015-06-09 02:17:42 UTC) #19
Lei Zhang
On 2015/06/09 02:17:42, Peter Kasting wrote: > On 2015/06/09 01:34:04, Lei Zhang wrote: > > ...
5 years, 6 months ago (2015-06-09 02:48:57 UTC) #20
Anand Mistry (off Chromium)
On 2015/06/09 02:48:57, Lei Zhang wrote: > On 2015/06/09 02:17:42, Peter Kasting wrote: > > ...
5 years, 6 months ago (2015-06-09 03:59:55 UTC) #21
Lei Zhang
lgtm
5 years, 6 months ago (2015-06-09 18:50:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160243004/120001
5 years, 6 months ago (2015-06-09 18:50:33 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-09 19:18:49 UTC) #26
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/f269d3b548203e217e8c0080c2e22e7ae3efb51e Cr-Commit-Position: refs/heads/master@{#333548}
5 years, 6 months ago (2015-06-09 19:19:49 UTC) #27
Lei Zhang
5 years, 6 months ago (2015-06-24 08:40:41 UTC) #28
Message was sent while issue was closed.
On 2015/06/09 02:17:42, Peter Kasting wrote:
> On 2015/06/09 01:34:04, Lei Zhang wrote:
> > On 2015/06/09 01:13:10, Anand Mistry wrote:
> > > Done, but I'm going to voice my opposition to this. When I took over the
> > > hotwording code, there were a number of obscure hoops to jump though to
get
> > this
> > > to work locally. They've been eliminated. Having to find these pair of
> > #defines
> > > and changing them is more obscure to a newcomer than a build flag (that
can
> > > easily be traced through the code).
> > 
> > What about having a run time flag for enabling hotwording? We would always
> > enable hotwording for Google Chrome builds, and check for it in Chromium
> builds.
> > That way, Chromium users can make the decision to use the feature, rather
than
> > the Chromium distributor. And it won't require hotwording developers to
build
> > with GOOGLE_CHROME_BUILD or do any #ifdef hacking.
> 
> We shouldn't be exposing feature-enables to end users as runtime switches.
> 
> Honestly, I think the right thing to do is for Chromium users to get this by
> default but have a build switch that can be used to disable it for projects
like
> Debian that feel more strongly about not having any external binary blobs used
> for anything.  I don't think simply disabling this in general for Chromium is
> correct.  It's not true that Chromium by definition should not make use of
such
> blobs, and I think the damage to developers and to more pragmatic users of
> Chromium-based projects is greater than we should be willing to pay.

FTR, there was a second bug about this and another CL disabled the feature for
Chromium by default. I'll email chromium-packagers so the various Linux distros
can figure out what they want to do.
https://code.google.com/p/chromium/issues/detail?id=500922

Powered by Google App Engine
This is Rietveld 408576698