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

Issue 11667015: For the Metro mode infobar, move various variables from the caller side to the (Closed)

Created:
8 years ago by Peter Kasting
Modified:
7 years, 12 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, jam, darin-cc_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

For the Metro mode infobar, move various variables from the caller side to the infobar side. This will make a subsequent infobar creation change patch I'm working on much easier. Besides, it's not really important for the caller to know these sorts of low-level details. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174640

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -42 lines) Patch
M chrome/browser/plugins/plugin_infobar_delegates.h View 1 2 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/plugins/plugin_infobar_delegates.cc View 1 4 chunks +15 lines, -22 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.cc View 1 2 chunks +4 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Peter Kasting
8 years ago (2012-12-22 01:48:16 UTC) #1
Bernhard Bauer
https://codereview.chromium.org/11667015/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc File chrome/browser/plugins/plugin_infobar_delegates.cc (left): https://codereview.chromium.org/11667015/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc#oldcode489 chrome/browser/plugins/plugin_infobar_delegates.cc:489: DCHECK(show_dont_ask_again_button_); Is there a reason you removed this DCHECK? ...
8 years ago (2012-12-22 01:55:53 UTC) #2
Peter Kasting
Is this LGTM, or should I make further changes? https://codereview.chromium.org/11667015/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc File chrome/browser/plugins/plugin_infobar_delegates.cc (left): https://codereview.chromium.org/11667015/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc#oldcode489 chrome/browser/plugins/plugin_infobar_delegates.cc:489: ...
7 years, 12 months ago (2012-12-26 18:40:36 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/11667015/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc File chrome/browser/plugins/plugin_infobar_delegates.cc (right): https://codereview.chromium.org/11667015/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc#newcode462 chrome/browser/plugins/plugin_infobar_delegates.cc:462: return (mode_ == MISSING_PLUGIN) ? BUTTON_OK : (BUTTON_OK | ...
7 years, 12 months ago (2012-12-26 22:38:58 UTC) #4
Peter Kasting
On 2012/12/26 22:38:58, Bernhard Bauer wrote: > I guess that mismatch between having an enum ...
7 years, 12 months ago (2012-12-26 22:44:41 UTC) #5
Bernhard Bauer
7 years, 12 months ago (2012-12-26 22:46:25 UTC) #6
Message was sent while issue was closed.
On 2012/12/26 22:44:41, Peter Kasting wrote:
> On 2012/12/26 22:38:58, Bernhard Bauer wrote:
> > I guess that mismatch between having an enum
> > that could potentially have an arbitrary number of states, and handling one
> > single condition, is what feels weird to me. But if you feel strongly about
> it,
> > the current state LGTM.
> 
> I don't feel super-strongly.  There is precedent in the rest of the infobar
> system -- we're very consistent about using ?: for things like
GetButtonLabel(),
> and assuming the button enum only has two buttons in it.  Doing something
> similar here is more consistent with the rest of the file and other infobar
> code.
> 
> I guess in the interests of just making a decision I'll go ahead and check in,
> but if you want to refactor the code and change it in the future I'll try to
> remember not to whine about it :).

Deal :)

Powered by Google App Engine
This is Rietveld 408576698