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

Issue 124893002: OpaqueBrowserFrameViewPlatformSpecific::Create no longer returns NULL. (Closed)

Created:
6 years, 11 months ago by Matt Giuca
Modified:
6 years, 11 months ago
Reviewers:
James Cook
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

OpaqueBrowserFrameViewPlatformSpecific::Create no longer returns NULL. This avoids duplicating the default logic for all of its methods. Previously, every time a method was called, we had to test for NULL and assume the default value for that method (even though the default method implementation already exists; it was never used). Now the caller assumes platform_observer_ is non-NULL (via a DCHECK) and it is the base class's responsibility to provide default methods. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243819

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove redundant DCHECKs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -13 lines) Patch
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 3 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_platform_specific.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_platform_specific.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Matt Giuca
6 years, 11 months ago (2014-01-06 04:23:38 UTC) #1
James Cook
LGTM https://codereview.chromium.org/124893002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/124893002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode431 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:431: DCHECK(platform_observer_); nit: I don't think you need to ...
6 years, 11 months ago (2014-01-06 17:54:12 UTC) #2
Matt Giuca
https://codereview.chromium.org/124893002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/124893002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode431 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:431: DCHECK(platform_observer_); On 2014/01/06 17:54:12, James Cook wrote: > nit: ...
6 years, 11 months ago (2014-01-06 23:51:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/124893002/80001
6 years, 11 months ago (2014-01-07 00:36:31 UTC) #4
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/frame/opaque_browser_frame_view.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-07 00:36:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/124893002/80001
6 years, 11 months ago (2014-01-08 23:03:57 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, chromedriver_unittests, components_unittests, ...
6 years, 11 months ago (2014-01-09 00:24:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/124893002/80001
6 years, 11 months ago (2014-01-09 06:28:50 UTC) #8
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 08:32:45 UTC) #9
Message was sent while issue was closed.
Change committed as 243819

Powered by Google App Engine
This is Rietveld 408576698