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

Issue 1723583004: CREDENTIAL: Convert federations from URLs to origins throughout. (Closed)

Created:
4 years, 10 months ago by Mike West
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, bondd+autofillwatch_chromium.org, browser-components-watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dbeam+watch-options_chromium.org, dglazkov+blink, estade+watch_chromium.org, extensions-reviews_chromium.org, gcasto+watchlist_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, kinuko+watch, michaelpg+watch-options_chromium.org, mkwst+watchlist-passwords_chromium.org, rouslan+autofill_chromium.org, sdefresne+watch_chromium.org, tfarina, vabr+watchlistautofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CREDENTIAL: Convert federations from URLs to origins throughout. We've been loosely treating federations as URLs, as it was simple and easy. That laxness, however, has caused some issues with the Android integration, as they are doing exact string comparisons as opposed to origin comparisons. In particular, they expect the serialization stored to sync to exclude the trailing '/'. This patch converts the field to an origin throughout, which ensures both that the serialization matches Android's expectations, but also that we're properly excluding paths and etc. from the comparisons we make in various places in the codebase. BUG=589016 R=vabr@chromium.org, vasilii@chromium.org, jochen@chromium.org TBR=marq@chromium.org Committed: https://crrev.com/0604e9e30c88836aaab577189b7c1f19f2ab55d8 Cr-Commit-Position: refs/heads/master@{#377834}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Feedback. #

Patch Set 3 : iOS #

Patch Set 4 : iOS2 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -152 lines) Patch
M chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/credential_android.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/native_backend_gnome_x.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/password_manager/native_backend_gnome_x_unittest.cc View 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/password_manager/native_backend_kwallet_x.cc View 4 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret.cc View 1 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret_unittest.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_mac_unittest.cc View 5 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/password_manager/save_password_infobar_delegate.cc View 1 2 3 2 chunks +4 lines, -3 lines 1 comment Download
M chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/passwords/passwords_list_view_controller.mm View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/passwords/passwords_list_view_controller_unittest.mm View 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_model.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_state.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_state_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_view_utils.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_password_items_view.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M components/autofill/core/common/password_form.h View 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/core/common/password_form.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/password_manager/content/browser/credential_manager_dispatcher_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M components/password_manager/content/common/credential_manager_content_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/credential_manager_pending_request_task.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/login_database.cc View 4 chunks +5 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/login_database_unittest.cc View 1 5 chunks +5 lines, -4 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_syncable_service.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_syncable_service_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M components/password_manager/core/common/credential_manager_types.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/password_manager/core/common/credential_manager_types.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M components/password_manager/core/common/credential_manager_types_unittest.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M ios/chrome/browser/passwords/credential_manager.mm View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M ios/web/public/web_state/credential.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ios/web/web_state/credential.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ios/web/web_state/js/credential_util.mm View 1 3 chunks +3 lines, -2 lines 0 comments Download
M ios/web/web_state/js/credential_util_unittest.mm View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html View 1 3 chunks +16 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/FederatedCredential.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/FederatedCredential.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/credentialmanager/PlatformFederatedCredential.h View 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/credentialmanager/PlatformFederatedCredential.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebFederatedCredential.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebFederatedCredential.h View 1 chunk +3 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
Mike West
vabr@, vasilii@: Would you mind skimming this patch? It's mostly mechanical. jochen@: Can you review ...
4 years, 10 months ago (2016-02-23 13:50:25 UTC) #1
vabr (Chromium)
Passwords LGTM once the bots are happy. I was wondering whether we would need any ...
4 years, 10 months ago (2016-02-23 14:33:54 UTC) #2
jochen (gone - plz use gerrit)
blink lgtm
4 years, 10 months ago (2016-02-23 14:35:53 UTC) #3
vasilii
https://codereview.chromium.org/1723583004/diff/1/chrome/browser/password_manager/native_backend_gnome_x.cc File chrome/browser/password_manager/native_backend_gnome_x.cc (right): https://codereview.chromium.org/1723583004/diff/1/chrome/browser/password_manager/native_backend_gnome_x.cc#newcode371 chrome/browser/password_manager/native_backend_gnome_x.cc:371: "application", app_string, nullptr); Nice formatting please. https://codereview.chromium.org/1723583004/diff/1/chrome/browser/password_manager/native_backend_libsecret.cc File chrome/browser/password_manager/native_backend_libsecret.cc ...
4 years, 10 months ago (2016-02-23 14:59:21 UTC) #4
Mike West
https://codereview.chromium.org/1723583004/diff/1/chrome/browser/password_manager/native_backend_gnome_x.cc File chrome/browser/password_manager/native_backend_gnome_x.cc (right): https://codereview.chromium.org/1723583004/diff/1/chrome/browser/password_manager/native_backend_gnome_x.cc#newcode371 chrome/browser/password_manager/native_backend_gnome_x.cc:371: "application", app_string, nullptr); On 2016/02/23 at 14:59:20, vasilii wrote: ...
4 years, 10 months ago (2016-02-25 09:56:16 UTC) #5
vasilii
lgtm https://codereview.chromium.org/1723583004/diff/1/chrome/browser/password_manager/native_backend_gnome_x.cc File chrome/browser/password_manager/native_backend_gnome_x.cc (right): https://codereview.chromium.org/1723583004/diff/1/chrome/browser/password_manager/native_backend_gnome_x.cc#newcode371 chrome/browser/password_manager/native_backend_gnome_x.cc:371: "application", app_string, nullptr); On 2016/02/25 09:56:15, Mike West ...
4 years, 10 months ago (2016-02-25 12:38:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1723583004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1723583004/60001
4 years, 10 months ago (2016-02-25 19:17:00 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/150214)
4 years, 10 months ago (2016-02-25 19:46:33 UTC) #11
Mike West
On 2016/02/25 at 19:46:33, commit-bot wrote: > Try jobs failed on following builders: > chromium_presubmit ...
4 years, 10 months ago (2016-02-26 06:34:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1723583004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1723583004/60001
4 years, 10 months ago (2016-02-26 06:36:19 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-26 06:46:31 UTC) #17
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0604e9e30c88836aaab577189b7c1f19f2ab55d8 Cr-Commit-Position: refs/heads/master@{#377834}
4 years, 10 months ago (2016-02-26 06:47:42 UTC) #19
melandory
https://codereview.chromium.org/1723583004/diff/60001/chrome/browser/password_manager/save_password_infobar_delegate.cc File chrome/browser/password_manager/save_password_infobar_delegate.cc (right): https://codereview.chromium.org/1723583004/diff/60001/chrome/browser/password_manager/save_password_infobar_delegate.cc#newcode101 chrome/browser/password_manager/save_password_infobar_delegate.cc:101: : PasswordTittleType::UPDATE_PASSWORD; Sad story about the fix which didn't ...
4 years, 9 months ago (2016-03-11 10:01:06 UTC) #22
melandory
4 years, 9 months ago (2016-03-11 10:01:07 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/1723583004/diff/60001/chrome/browser/password...
File chrome/browser/password_manager/save_password_infobar_delegate.cc (right):

https://codereview.chromium.org/1723583004/diff/60001/chrome/browser/password...
chrome/browser/password_manager/save_password_infobar_delegate.cc:101: :
PasswordTittleType::UPDATE_PASSWORD;
Sad story about the fix which didn't survive
https://codereview.chromium.org/1717263002/ :)

Powered by Google App Engine
This is Rietveld 408576698