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

Issue 383083009: [Password Manager] Fix crash in reporting sync stats. (Closed)

Created:
6 years, 5 months ago by Garrett Casto
Modified:
6 years, 5 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist_chromium.org
Project:
chromium
Visibility:
Public.

Description

[Password Manager] Fix crash in reporting sync stats. It is possible for password_sync_metrics::IsPasswordSyncUsername() to be called during sync setup, which currently causes a stack overflow since GetPasswordSyncUsername() will try to re-initialize sync. Fixed by not checking to see if the user is syncing passwords, just if they have a saved username. This is slightly less specific, but determining if password sync is occuring during setup doesn't seem reasonable. R=isherman@chromium.org TBR=vabr@chromium.org BUG=393626, 386403 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283254

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -32 lines) Patch
M chrome/browser/password_manager/chrome_password_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/sync_metrics.h View 1 2 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/password_manager/sync_metrics.cc View 2 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/ui/passwords/password_manager_presenter.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager_client.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Garrett Casto
6 years, 5 months ago (2014-07-14 19:14:46 UTC) #1
Ilya Sherman
https://codereview.chromium.org/383083009/diff/20001/chrome/browser/password_manager/sync_metrics.cc File chrome/browser/password_manager/sync_metrics.cc (left): https://codereview.chromium.org/383083009/diff/20001/chrome/browser/password_manager/sync_metrics.cc#oldcode22 chrome/browser/password_manager/sync_metrics.cc:22: return ""; Is this the code that you're saying ...
6 years, 5 months ago (2014-07-15 01:09:12 UTC) #2
Ilya Sherman
BTW, if we do go with this change, should histograms.xml be updated?
6 years, 5 months ago (2014-07-15 01:09:26 UTC) #3
Garrett Casto
I actually checked histograms.xml, and the relevant histogram doesn't specifically call out password sync at ...
6 years, 5 months ago (2014-07-15 05:39:04 UTC) #4
Ilya Sherman
https://codereview.chromium.org/383083009/diff/20001/chrome/browser/password_manager/sync_metrics.cc File chrome/browser/password_manager/sync_metrics.cc (left): https://codereview.chromium.org/383083009/diff/20001/chrome/browser/password_manager/sync_metrics.cc#oldcode22 chrome/browser/password_manager/sync_metrics.cc:22: return ""; On 2014/07/15 05:39:03, Garrett Casto wrote: > ...
6 years, 5 months ago (2014-07-15 05:48:13 UTC) #5
Garrett Casto
https://codereview.chromium.org/383083009/diff/20001/chrome/browser/password_manager/sync_metrics.cc File chrome/browser/password_manager/sync_metrics.cc (left): https://codereview.chromium.org/383083009/diff/20001/chrome/browser/password_manager/sync_metrics.cc#oldcode22 chrome/browser/password_manager/sync_metrics.cc:22: return ""; On 2014/07/15 05:48:13, Ilya Sherman wrote: > ...
6 years, 5 months ago (2014-07-15 06:05:55 UTC) #6
Ilya Sherman
If you don't think it's useful to check for password syncing state for this metric, ...
6 years, 5 months ago (2014-07-15 18:17:48 UTC) #7
Garrett Casto
The CQ bit was checked by gcasto@chromium.org
6 years, 5 months ago (2014-07-15 20:05:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gcasto@chromium.org/383083009/40001
6 years, 5 months ago (2014-07-15 20:08:25 UTC) #9
Garrett Casto
TBRing vabr@ for the rename in password_manager_presenter.cc.
6 years, 5 months ago (2014-07-15 21:07:20 UTC) #10
Garrett Casto
6 years, 5 months ago (2014-07-15 21:09:14 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 manually as r283254 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698