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

Issue 2765083002: Hardcode extensions::util::IsNewBookmarkAppsEnabled() to true, except on Mac. (Closed)

Created:
3 years, 9 months ago by tapted
Modified:
3 years, 9 months ago
CC:
asvitkine+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, mac-reviews_chromium.org, Matt Giuca, tapted, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Hardcode extensions::util::IsNewBookmarkAppsEnabled() to true, except on Mac. On Mac, make it a Feature controlled by chrome://flags/#bookmark-apps. (Currently one needs to "Enable" #disable-new-bookmark-apps which is confusing). Feature flags have other benefits over command line flags too (e.g. Finch integration). On other platforms, it's been on by default for a long time and doesn't need a disable flag. Hardcoding it to `true` means we have some more obviously dead code around IDC_CREATE_SHORTCUTS which was never implemented on Mac, and replaced by bookmark apps elsewhere. BUG=702551 Review-Url: https://codereview.chromium.org/2765083002 Cr-Commit-Position: refs/heads/master@{#459209} Committed: https://chromium.googlesource.com/chromium/src/+/70cdc81ee387422102b362949621882df0bacd25

Patch Set 1 #

Patch Set 2 : Make flag mac-only #

Patch Set 3 : remove logging #

Total comments: 11

Patch Set 4 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -47 lines) Patch
M chrome/browser/about_flags.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_util.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl_browsertest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm View 1 2 3 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/extensions/hosted_app_browsertest.cc View 1 2 3 7 chunks +18 lines, -10 lines 0 comments Download
M chrome/common/chrome_features.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_features.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/renderer/web_apps.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
tapted
Hi Dom, please take a look. https://codereview.chromium.org/2765083002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): https://codereview.chromium.org/2765083002/diff/60001/chrome/browser/chrome_content_browser_client.cc#oldcode1865 chrome/browser/chrome_content_browser_client.cc:1865: switches::kDisableNewBookmarkApps, Using base::Feature ...
3 years, 9 months ago (2017-03-22 02:34:02 UTC) #8
dominickn
https://codereview.chromium.org/2765083002/diff/60001/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm File chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm (right): https://codereview.chromium.org/2765083002/diff/60001/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm#newcode60 chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm:60: command_line->AppendSwitchASCII(switches::kEnableFeatures, Can you carry a base::ScopedFeatureList as a member ...
3 years, 9 months ago (2017-03-22 04:18:12 UTC) #9
tapted
https://codereview.chromium.org/2765083002/diff/60001/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm File chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm (right): https://codereview.chromium.org/2765083002/diff/60001/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm#newcode60 chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm:60: command_line->AppendSwitchASCII(switches::kEnableFeatures, On 2017/03/22 04:18:12, dominickn wrote: > Can you ...
3 years, 9 months ago (2017-03-23 02:59:59 UTC) #16
dominickn
lgtm, thanks
3 years, 9 months ago (2017-03-23 03:44:39 UTC) #17
tapted
+jochen for chrome/renderer/web_apps.cc +benwells for extensions (hosted_app_browsertest.cc,extension_util.cc +isherman for histograms.xml
3 years, 9 months ago (2017-03-23 05:46:29 UTC) #19
benwells
lgtm
3 years, 9 months ago (2017-03-23 06:22:04 UTC) #20
jochen (gone - plz use gerrit)
chrome/renderer/web_apps.cc lgtm
3 years, 9 months ago (2017-03-23 15:52:42 UTC) #21
Ilya Sherman
histograms.xml lgtm
3 years, 9 months ago (2017-03-23 19:57:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2765083002/80001
3 years, 9 months ago (2017-03-23 20:42:35 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 20:49:13 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/70cdc81ee387422102b362949621...

Powered by Google App Engine
This is Rietveld 408576698