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

Issue 2734463004: [Payments] Update server card billing if the address has already converted (Closed)

Created:
3 years, 9 months ago by sebsg
Modified:
3 years, 9 months ago
Reviewers:
Mathieu, Theresa
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Update server card billing if the address has already converted Before this patch, if you added a new server card where the billing address was already converted (with an older card for example), the billing address id for the new card was not updated. With this patch, these cards will be updated too. For server cards with a billing address that was already converted, look for a local profile that matches it and update the id in the card BUG=698364 Review-Url: https://codereview.chromium.org/2734463004 Cr-Commit-Position: refs/heads/master@{#454976} Committed: https://chromium.googlesource.com/chromium/src/+/1eeee730395362b15e304fa65fa36c5a0bc5e204

Patch Set 1 #

Patch Set 2 : Refactored #

Total comments: 10

Patch Set 3 : Addressed comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -31 lines) Patch
M components/autofill/core/browser/personal_data_manager.h View 1 2 2 chunks +35 lines, -9 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 5 chunks +87 lines, -13 lines 2 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 9 chunks +124 lines, -9 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
sebsg
Hi Math, PTAL?
3 years, 9 months ago (2017-03-06 15:20:02 UTC) #9
Mathieu
lgtm https://codereview.chromium.org/2734463004/diff/40001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2734463004/diff/40001/components/autofill/core/browser/personal_data_manager.cc#newcode58 components/autofill/core/browser/personal_data_manager.cc:58: const int LOCAL_GUID_LENGTH = 36; comment? https://codereview.chromium.org/2734463004/diff/40001/components/autofill/core/browser/personal_data_manager.cc#newcode1251 components/autofill/core/browser/personal_data_manager.cc:1251: ...
3 years, 9 months ago (2017-03-06 20:40:34 UTC) #13
sebsg
Thanks for the comments, sending to CQ https://codereview.chromium.org/2734463004/diff/40001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2734463004/diff/40001/components/autofill/core/browser/personal_data_manager.cc#newcode58 components/autofill/core/browser/personal_data_manager.cc:58: const int ...
3 years, 9 months ago (2017-03-06 21:26:40 UTC) #15
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/2734463004/80001
3 years, 9 months ago (2017-03-06 21:27:35 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/1eeee730395362b15e304fa65fa36c5a0bc5e204
3 years, 9 months ago (2017-03-06 22:24:03 UTC) #21
Theresa
https://codereview.chromium.org/2734463004/diff/80001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2734463004/diff/80001/components/autofill/core/browser/personal_data_manager.cc#newcode1951 components/autofill/core/browser/personal_data_manager.cc:1951: DCHECK(it != server_id_profiles_map->end()); I synced this morning and now ...
3 years, 9 months ago (2017-03-07 21:58:18 UTC) #23
sebsg
3 years, 9 months ago (2017-03-07 22:20:11 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2734463004/diff/80001/components/autofill/cor...
File components/autofill/core/browser/personal_data_manager.cc (right):

https://codereview.chromium.org/2734463004/diff/80001/components/autofill/cor...
components/autofill/core/browser/personal_data_manager.cc:1951: DCHECK(it !=
server_id_profiles_map->end());
On 2017/03/07 21:58:17, Theresa wrote:
> I synced this morning and now I'm getting crashes on this DCHECK:
> 
> [FATAL:personal_data_manager.cc(1955)] Check failed: it !=
> server_id_profiles_map->end().
> 
>              
>
/work/clankium/src/components/autofill/core/browser/personal_data_manager.cc:1955
>   00951be5  ConvertWalletAddressesAndUpdateWalletCards                        
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
>
/work/clankium/src/components/autofill/core/browser/personal_data_manager.cc:1883
>   0022897b  NotifyPersonalDataChanged                                         
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
>
/work/clankium/src/components/autofill/core/browser/personal_data_manager.cc:1260
>   0022840d  OnWebDataServiceRequestDone                                       
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
>
/work/clankium/src/components/autofill/core/browser/personal_data_manager.cc:410
>   00004659  RequestCompletedOnThread                                          
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/components/webdata/common/web_data_request_manager.cc:177
>   00004eff  Invoke<const scoped_refptr<WebDataRequestManager> &,
> std::__ndk1::unique_ptr<WebDataRequest,
> std::__ndk1::default_delete<WebDataRequest> >,
> std::__ndk1::unique_ptr<WDTypedResult,
> std::__ndk1::default_delete<WDTypedResult> > >                                
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                               /work/clankium/src/base/bind_internal.h:214
>   v------>  MakeItSo<void (WebDataRequestManager::*const
> &)(std::__ndk1::unique_ptr<WebDataRequest,
> std::__ndk1::default_delete<WebDataRequest> >,
> std::__ndk1::unique_ptr<WDTypedResult,
> std::__ndk1::default_delete<WDTypedResult> >), const
> scoped_refptr<WebDataRequestManager> &,
std::__ndk1::unique_ptr<WebDataRequest,
> std::__ndk1::default_delete<WebDataRequest> >,
> std::__ndk1::unique_ptr<WDTypedResult,
> std::__ndk1::default_delete<WDTypedResult> > >                                
 
>                                                           
> /work/clankium/src/base/bind_internal.h:285
>   v------>  RunImpl<void (WebDataRequestManager::*const
> &)(std::__ndk1::unique_ptr<WebDataRequest,
> std::__ndk1::default_delete<WebDataRequest> >,
> std::__ndk1::unique_ptr<WDTypedResult,
> std::__ndk1::default_delete<WDTypedResult> >), const
> std::__ndk1::tuple<scoped_refptr<WebDataRequestManager>,
> base::internal::PassedWrapper<std::__ndk1::unique_ptr<WebDataRequest,
> std::__ndk1::default_delete<WebDataRequest> > >,
> base::internal::PassedWrapper<std::__ndk1::unique_ptr<WDTypedResult,
> std::__ndk1::default_delete<WDTypedResult> > > > &, 0, 1, 2> 
> /work/clankium/src/base/bind_internal.h:361
>   00004e9f  Run                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/base/bind_internal.h:339
>   0008d523  Run                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/base/callback.h:68
>   0008d409  RunTask                                                           
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/base/debug/task_annotator.cc:59
>   000a7f61  RunTask                                                           
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/base/message_loop/message_loop.cc:423
>   000a81bf  DeferOrRunPendingTask                                             
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/base/message_loop/message_loop.cc:434
>   000a8389  DoWork                                                            
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/base/message_loop/message_loop.cc:527
>   v------>  DoRunLoopOnce                                                     
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
> /work/clankium/src/base/message_loop/message_pump_android.cc:44
>   000a94d1  Java_org_chromium_base_SystemMessageHandler_nativeDoRunLoopOnce   
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
>
/work/clankium/src/out-gn/Debug/gen/base/base_jni_headers/base/jni/SystemMessageHandler_jni.h:44
>   000161bd  offset 0x36000                                                    
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                                               
 
>                                                           
>
/data/data/com.google.android.apps.chrome/incremental-install-files/optimized-dexes/base.base_java.dex.dex
> 

I am very curious on how it could trigger. Can we move the discussion to
crbug.com/698364 ? I would like to try to repro

Powered by Google App Engine
This is Rietveld 408576698