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

Issue 1704793002: Remove kDisableDownloadNotification and stop compiling shelf code on (Closed)

Created:
4 years, 10 months ago by Evan Stade
Modified:
4 years, 4 months ago
Reviewers:
asanka, sky
CC:
chromium-reviews, asanka, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove kDisableDownloadNotification and stop compiling shelf code on CrOS. BUG=587273, 217810, 582688

Patch Set 1 #

Patch Set 2 : remove more stuff #

Patch Set 3 : fix gypi #

Patch Set 4 : more #

Patch Set 5 : compile #

Patch Set 6 : fix gn #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -81 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 4 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/download/download_ui_controller.cc View 3 chunks +6 lines, -13 lines 0 comments Download
M chrome/browser/download/notification/download_notification_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/download/notification/download_notification_manager.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 5 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 1 chunk +10 lines, -12 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704793002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704793002/100001
4 years, 10 months ago (2016-02-18 02:57:16 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/132383) ios_rel_device_ninja on ...
4 years, 10 months ago (2016-02-18 03:00:59 UTC) #6
Evan Stade
4 years, 10 months ago (2016-02-18 21:33:22 UTC) #7
sky
I have to admit I'm not a fan of the slew of random ifdefs this ...
4 years, 10 months ago (2016-02-18 22:24:10 UTC) #8
Evan Stade
On 2016/02/18 22:24:10, sky wrote: > I have to admit I'm not a fan of ...
4 years, 10 months ago (2016-02-18 22:31:50 UTC) #9
sky
All the ifdefs in browser_view make me sad. On Thu, Feb 18, 2016 at 2:31 ...
4 years, 10 months ago (2016-02-19 00:27:42 UTC) #10
Evan Stade
I've been meaning to come back to this to see if I could improve it ...
4 years, 10 months ago (2016-02-23 18:10:17 UTC) #11
sky
4 years, 10 months ago (2016-02-23 21:21:11 UTC) #12
It's still going to be a slew of ifdefs, right? So, probably not.

  -Scott

On Tue, Feb 23, 2016 at 10:10 AM,  <estade@chromium.org> wrote:
> I've been meaning to come back to this to see if I could improve it but
> probably
> won't get to it till after the branch point. Would you like it better if I
> added
> a feature BUILDFLAG like in [1]?
>
> [1] https://codereview.chromium.org/1718093005/
>
> On 2016/02/19 00:27:42, sky wrote:
>> All the ifdefs in browser_view make me sad.
>>
>> On Thu, Feb 18, 2016 at 2:31 PM, <mailto:estade@chromium.org> wrote:
>> > On 2016/02/18 22:24:10, sky wrote:
>> >> I have to admit I'm not a fan of the slew of random ifdefs this adds. I
>> >> would
>> >> prefer we continue down the path of using a feature to determine if
>> >> downloadshelf is available, and having chromeos return false for it.
>> >
>> > Can you expand on why you dislike ifdefs? I agree fewer are better than
>> > more,
>> > but I disagree that a runtime check is better. Perhaps you'll need fewer
>> > runtime
>> > checks, but to me the difference is this:
>> >
>> > #if !defined(OS_CHROMEOS)
>> > void DoSomething() {
>> > ...
>> > }
>> > #endif
>> >
>> > vs
>> >
>> > // It's impossible to tell from here, but this function is never used on
>> > certain
>> > platforms.
>> > void DoSomething() {
>> > ...
>> > }
>> >
>> > When it comes to readability, ifdefs can add clutter, but at least the
>> > former is
>> > explicit about what's actually happening.
>> >
>> > I think ideally we would compile out the code and use fewer ifdefs. The
>> > only
>> > reason we need so many is because of what (imo) amounts to a bunch of
>> > layering
>> > violations. But I think the objective benefits of code removal outweigh
>> > the
>> > aesthetic concerns over ifdefs (unless there is some reason to dislike
>> > ifdefs
>> > that I haven't considered).
>> >
>> > https://codereview.chromium.org/1704793002/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Chromium-reviews" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
> email
>> to mailto:chromium-reviews+unsubscribe@chromium.org.
>>
>
>
> https://codereview.chromium.org/1704793002/

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698