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

Issue 1477783004: Add a preference to control Windows desktop search redirection. (Closed)

Created:
5 years ago by fdoray
Modified:
5 years 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

Add a preference to control Windows desktop search redirection. This CL adds a new preference called "windows_desktop_search_redirection", that controls whether Windows desktop searches should be redirected to the default search engine. The preference can be enabled, disabled or unset. Enabled and disabled mean that redirection of desktop searches has been explicitly enabled or disabled. Unset means no value has been explicitly set and that the browser should ask the user whether they want to use the feature (prompt + checkbox to edit the preference from chrome://settings will be implemented in an upcoming CL). BUG=539963 Committed: https://crrev.com/ee511066919908c8b8b5d6f17bb18a2a72971372 Cr-Commit-Position: refs/heads/master@{#363064}

Patch Set 1 #

Patch Set 2 : Caps for feature name. #

Patch Set 3 : Declare feature in header file. #

Total comments: 8

Patch Set 4 : nits, unit test for StartupBrowserCreator::GetURLsFromCommandLine #

Patch Set 5 : add about_flags.cc entry #

Patch Set 6 : add about_flags.cc entry #

Total comments: 10

Patch Set 7 : nits from pkasting #

Patch Set 8 : rebase #

Patch Set 9 : fix compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -97 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_factory.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
A chrome/browser/ui/startup/startup_browser_creator_win_unittest.cc View 1 2 3 4 5 6 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/search_engines.gypi View 1 chunk +2 lines, -2 lines 0 comments Download
M components/search_engines/BUILD.gn View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A components/search_engines/desktop_search_win.h View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
A + components/search_engines/desktop_search_win.cc View 1 2 3 4 5 6 2 chunks +27 lines, -2 lines 0 comments Download
A + components/search_engines/desktop_search_win_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
D components/search_engines/detect_desktop_search_win.h View 1 chunk +0 lines, -19 lines 0 comments Download
D components/search_engines/detect_desktop_search_win.cc View 1 chunk +0 lines, -48 lines 0 comments Download
M components/search_engines/search_engines_switches.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/search_engines/search_engines_switches.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
fdoray
Could you review this CL? Thanks. With this upcoming CL: https://codereview.chromium.org/1477273002/, it will become possible ...
5 years ago (2015-11-27 01:50:49 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/1477783004/diff/40001/components/search_engines/desktop_search_win.cc File components/search_engines/desktop_search_win.cc (right): https://codereview.chromium.org/1477783004/diff/40001/components/search_engines/desktop_search_win.cc#newcode24 components/search_engines/desktop_search_win.cc:24: const base::Feature kWindowsDesktopSearchRedirectionFeature = { Nit: If you ...
5 years ago (2015-12-01 02:23:05 UTC) #3
fdoray
pkasting@: I added a test for StartupBrowserCreator::GetURLsFromCommandLine, as you recommended. Can you review it in ...
5 years ago (2015-12-02 17:28:27 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/1477783004/diff/100001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1477783004/diff/100001/chrome/browser/about_flags.cc#newcode97 chrome/browser/about_flags.cc:97: #endif // defined(OS_WIN) Nit: I suggest grouping together ...
5 years ago (2015-12-03 05:41:39 UTC) #8
fdoray
pkasting@: all done. asvitkine@: Can you review about_flags.cc, generated_resources.grd and usage of base::Feature throughout the ...
5 years ago (2015-12-03 17:16:18 UTC) #9
Alexei Svitkine (slow)
lgtm
5 years ago (2015-12-03 18:25:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477783004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477783004/120001
5 years ago (2015-12-03 18:28:47 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/131288) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-12-03 18:35:21 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477783004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477783004/140001
5 years ago (2015-12-03 18:59:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/75020)
5 years ago (2015-12-03 19:21:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477783004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477783004/160001
5 years ago (2015-12-03 20:09:44 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-12-03 21:37:20 UTC) #25
commit-bot: I haz the power
5 years ago (2015-12-03 21:38:13 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/ee511066919908c8b8b5d6f17bb18a2a72971372
Cr-Commit-Position: refs/heads/master@{#363064}

Powered by Google App Engine
This is Rietveld 408576698