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

Issue 777143003: Clean up straggler classes to use embedded signin in page in the new profiles world. (Closed)

Created:
6 years ago by noms (inactive)
Modified:
6 years ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, tfarina, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, dbeam+watch-options_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Clean up straggler classes to use embedded signin in page in the new profiles world. (namely the Bookmarks/Extension promos, and the Apps page signin link) Unfortunately this lead to discovering that the old Signin histograms that tracked the source of the signin page were broken, since the signin source is now always the avatar menu. So I cleaned up that. BUG=378792 Committed: https://crrev.com/5fb66fe67f0c862346257d5e419423f5a1a0f496 Cr-Commit-Position: refs/heads/master@{#308871}

Patch Set 1 : #

Total comments: 16

Patch Set 2 : rebase #

Patch Set 3 : fix compile #

Patch Set 4 : alexei & peter nits #

Total comments: 4

Patch Set 5 : giant cleanup: move signin histograms into components/signin #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : fix compile #

Patch Set 9 : fix histograms.xml #

Total comments: 2

Patch Set 10 : moar better histogram comment #

Patch Set 11 : Always Be Rebasin' #

Patch Set 12 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -419 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/ui/inline_login_dialog.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/signin/signin_browsertest.cc View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/signin/signin_global_error.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_promo.h View 1 2 3 4 4 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/signin/signin_promo.cc View 1 2 3 4 3 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_mac.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_mac.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/chrome_pages.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/one_click_signin_view_controller.mm View 1 2 3 4 7 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 9 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.h View 1 2 3 4 6 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 34 chunks +56 lines, -125 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/ui/sync/one_click_signin_histogram.h View 1 2 3 4 1 chunk +0 lines, -83 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_observer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_observer_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/signin_histogram.h View 1 2 3 4 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc View 1 2 3 4 6 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc View 1 2 3 4 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler.cc View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 1 2 3 4 8 chunks +16 lines, -21 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc View 1 2 3 4 5 6 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_test_utils.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
M components/signin/core/browser/signin_metrics.h View 1 2 3 4 2 chunks +79 lines, -0 lines 0 comments Download
M components/signin/core/browser/signin_metrics.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 5 chunks +42 lines, -1 line 0 comments Download

Messages

Total messages: 36 (11 generated)
noms (inactive)
Hi Roger, Would you mind taking a look before I send it out to owners ...
6 years ago (2014-12-05 15:37:32 UTC) #3
Roger Tawa OOO till Jul 10th
lgtm, but you may need to add some uma logging for reauth at line 108 ...
6 years ago (2014-12-08 15:33:55 UTC) #4
noms (inactive)
On 2014/12/08 15:33:55, Roger Tawa wrote: > lgtm, but you may need to add some ...
6 years ago (2014-12-08 16:48:49 UTC) #5
noms (inactive)
+ owners for review. - asvitkine: histograms.xml and c/b/ui/cocoa - xiyuan: c/b/ui/webui - pkasting: c/b//ui/chrome_pages.cc ...
6 years ago (2014-12-12 15:44:10 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (left): https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/sync/one_click_signin_helper.cc#oldcode704 chrome/browser/ui/sync/one_click_signin_helper.cc:704: UMA_HISTOGRAM_ENUMERATION("Signin.StartPageActions", action, If you're removing histograms, can you mark ...
6 years ago (2014-12-12 15:48:56 UTC) #8
noms (inactive)
https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (left): https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/sync/one_click_signin_helper.cc#oldcode704 chrome/browser/ui/sync/one_click_signin_helper.cc:704: UMA_HISTOGRAM_ENUMERATION("Signin.StartPageActions", action, On 2014/12/12 15:48:55, asvitkine (OOO Dec13 - ...
6 years ago (2014-12-12 15:59:29 UTC) #9
xiyuan
c/b/ui/webui LGTM
6 years ago (2014-12-12 17:41:58 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (left): https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/sync/one_click_signin_helper.cc#oldcode704 chrome/browser/ui/sync/one_click_signin_helper.cc:704: UMA_HISTOGRAM_ENUMERATION("Signin.StartPageActions", action, On 2014/12/12 15:59:29, Monica Dinculescu wrote: > ...
6 years ago (2014-12-12 17:53:05 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc File chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc (right): https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc#newcode91 chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc:91: InstalledBubbleContent(Browser* browser, Nit: While here, consider separating the ...
6 years ago (2014-12-12 21:43:05 UTC) #12
noms (inactive)
+ subbing in Jesse for Alexei for histograms.xml, as he's on vacation https://codereview.chromium.org/777143003/diff/20001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc ...
6 years ago (2014-12-16 16:55:50 UTC) #14
jwd
https://codereview.chromium.org/777143003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/777143003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode61401 tools/metrics/histograms/histograms.xml:61401: <histogram_suffixes name="Signin.Actions" separator="."> Yeah, I think you can just ...
6 years ago (2014-12-16 22:14:39 UTC) #15
noms (inactive)
Hi Roger, I moved all of the signin related histograms to components/signin, which means I've ...
6 years ago (2014-12-17 15:10:44 UTC) #16
noms (inactive)
Jesse, I (hope) I fixed histograms.xml. Please take a look again. Thanks! https://codereview.chromium.org/777143003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml ...
6 years ago (2014-12-17 15:34:01 UTC) #17
Roger Tawa OOO till Jul 10th
still lgtm Great cleanup!
6 years ago (2014-12-17 15:52:40 UTC) #18
noms (inactive)
Hi Robert, Would you mind taking a look at chrome/browser/app_controller_mac.mm, please? I did a bit ...
6 years ago (2014-12-17 16:24:44 UTC) #20
jwd
LGTM with comment https://codereview.chromium.org/777143003/diff/50012/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/777143003/diff/50012/tools/metrics/histograms/histograms.xml#newcode32482 tools/metrics/histograms/histograms.xml:32482: + or reauth Gaia page. Please ...
6 years ago (2014-12-17 16:54:18 UTC) #21
Robert Sesek
Mac bits LGTM
6 years ago (2014-12-17 17:45:21 UTC) #22
noms (inactive)
Woohoo, thanks everyone! https://codereview.chromium.org/777143003/diff/50012/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/777143003/diff/50012/tools/metrics/histograms/histograms.xml#newcode32482 tools/metrics/histograms/histograms.xml:32482: + or reauth Gaia page. On ...
6 years ago (2014-12-17 18:43:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/777143003/190001
6 years ago (2014-12-17 18:46:10 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/42961) android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/27000) android_chromium_gn_compile_rel ...
6 years ago (2014-12-17 18:51:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/777143003/230001
6 years ago (2014-12-17 19:50:07 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/8855) linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/43969) linux_chromium_rel_ng ...
6 years ago (2014-12-17 20:07:47 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/777143003/250001
6 years ago (2014-12-17 20:39:54 UTC) #34
commit-bot: I haz the power
Committed patchset #12 (id:250001)
6 years ago (2014-12-17 23:01:47 UTC) #35
commit-bot: I haz the power
6 years ago (2014-12-17 23:02:38 UTC) #36
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/5fb66fe67f0c862346257d5e419423f5a1a0f496
Cr-Commit-Position: refs/heads/master@{#308871}

Powered by Google App Engine
This is Rietveld 408576698