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

Side by Side Diff: chrome/browser/extensions/api/principals_private/principals_private_api.cc

Issue 1473543002: Implement newly designed sign-in related histograms for desktop platorms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/principals_private/principals_private_ap i.h" 5 #include "chrome/browser/extensions/api/principals_private/principals_private_ap i.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/profiles/avatar_menu.h" 8 #include "chrome/browser/profiles/avatar_menu.h"
9 #include "chrome/browser/profiles/profile_window.h" 9 #include "chrome/browser/profiles/profile_window.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 18 matching lines...) Expand all
29 profiles::LockProfile(browser->profile()); 29 profiles::LockProfile(browser->profile());
30 } 30 }
31 return true; 31 return true;
32 } 32 }
33 33
34 bool PrincipalsPrivateShowAvatarBubbleFunction::RunSyncSafe() { 34 bool PrincipalsPrivateShowAvatarBubbleFunction::RunSyncSafe() {
35 Browser* browser = GetCurrentBrowser(); 35 Browser* browser = GetCurrentBrowser();
36 if (browser) { 36 if (browser) {
37 browser->window()->ShowAvatarBubbleFromAvatarButton( 37 browser->window()->ShowAvatarBubbleFromAvatarButton(
38 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, 38 BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
39 signin::ManageAccountsParams()); 39 signin::ManageAccountsParams(),
40 signin_metrics::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN);
Roger Tawa OOO till Jul 10th 2015/12/02 20:33:48 This does not seem like the right access point.
gogerald1 2015/12/03 17:49:03 Use signin_metrics::ACCESS_POINT_AVATAR_BUBBLE_SIG
40 } 41 }
41 return true; 42 return true;
42 } 43 }
43 44
44 } // namespace extensions 45 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698