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

Issue 2000863002: MacViews: support Views credit card unmask prompt (Closed)

Created:
4 years, 7 months ago by Elly Fong-Jones
Modified:
4 years, 6 months ago
Reviewers:
sky, Evan Stade
CC:
chromium-reviews, rouslan+autofill_chromium.org, tfarina, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: support Views credit card unmask prompt Much of the Views autofill code is Mac-ready. This CL also adds two shims, one for Cocoa browsers and one for Views browsers. BUG=605677 Committed: https://crrev.com/c14582ff083f4c907573efd58e0246083cdd0581 Cr-Commit-Position: refs/heads/master@{#395901}

Patch Set 1 #

Patch Set 2 : Fix build break with autofill namespace #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -21 lines) Patch
M chrome/browser/ui/autofill/create_card_unmask_prompt_view.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm View 1 chunk +0 lines, -6 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm View 1 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 1 chunk +0 lines, -6 lines 0 comments Download
A chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc View 1 chunk +15 lines, -0 lines 2 comments Download
M chrome/chrome_browser_ui.gypi View 1 3 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (8 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/2000863002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000863002/20001
4 years, 7 months ago (2016-05-24 16:36:58 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-24 17:30:27 UTC) #4
Elly Fong-Jones
sky: ptal? :)
4 years, 7 months ago (2016-05-24 17:34:14 UTC) #7
Evan Stade
https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc (right): https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc#newcode12 chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc:12: return new CardUnmaskPromptViews(controller, web_contents); imo adding a whole new ...
4 years, 7 months ago (2016-05-24 18:01:48 UTC) #9
Elly Fong-Jones
https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc (right): https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc#newcode12 chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc:12: return new CardUnmaskPromptViews(controller, web_contents); On 2016/05/24 18:01:48, Evan Stade ...
4 years, 7 months ago (2016-05-24 18:08:53 UTC) #10
Evan Stade
On 2016/05/24 18:08:53, Elly Jones wrote: > https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc > File chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc (right): > > https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc#newcode12 ...
4 years, 7 months ago (2016-05-24 22:09:39 UTC) #11
Elly Fong-Jones
On 2016/05/24 22:09:39, Evan Stade wrote: > On 2016/05/24 18:08:53, Elly Jones wrote: > > ...
4 years, 6 months ago (2016-05-25 09:49:07 UTC) #12
Elly Fong-Jones
sky: ping? :)
4 years, 6 months ago (2016-05-25 11:17:43 UTC) #13
sky
LGTM
4 years, 6 months ago (2016-05-25 15:51:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000863002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000863002/20001
4 years, 6 months ago (2016-05-25 16:11:35 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-05-25 16:15:32 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c14582ff083f4c907573efd58e0246083cdd0581 Cr-Commit-Position: refs/heads/master@{#395901}
4 years, 6 months ago (2016-05-25 16:17:09 UTC) #20
Evan Stade
4 years, 6 months ago (2016-05-25 21:08:25 UTC) #21
Message was sent while issue was closed.
On 2016/05/25 09:49:07, Elly Jones wrote:
> On 2016/05/24 22:09:39, Evan Stade wrote:
> > On 2016/05/24 18:08:53, Elly Jones wrote:
> > >
> >
>
https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views...
> > > File chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc
> > (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/2000863002/diff/20001/chrome/browser/ui/views...
> > > chrome/browser/ui/views/autofill/card_unmask_prompt_views_shim.cc:12:
return
> > new
> > > CardUnmaskPromptViews(controller, web_contents);
> > > On 2016/05/24 18:01:48, Evan Stade wrote:
> > > > imo adding a whole new file for this, especially because the gypi file
> needs
> > > to
> > > > explicitly exclude it on mac, is not worth it. Why not just #if
> > > > !defined(OS_MACOSX) in place?
> > > 
> > > OS_MACOSX is true in mac_views_browser==1 builds, which need to use the
full
> > > Views stack and no Cocoa code. This file is included in
mac_views_browser==1
> > > builds but not Cocoa builds.
> > 
> > there's no macro for mac views browser? TOOLKIT_VIEWS doesn't work?
> 
> Nope, there is not :(. All Mac builds have TOOLKIT_VIEWS==1 and OS_MACOSX;
> there's no compile-time way to tell mac_views_browser==1 apart from
> mac_views_browser==0 except inside gyp vars, so generally we've been splitting
> code that cares about mac_views_browser by files.

seems like that should be pretty easy to fix, no? In BUILD.gn,

   if (mac_views_browser) {
     defines += [ "MAC_VIEWS_BROWSER=1" ]
   }

Powered by Google App Engine
This is Rietveld 408576698