OLD | NEW |
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/ui/views/frame/global_menu_bar_x11.h" | 5 #include "chrome/browser/ui/views/frame/global_menu_bar_x11.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <glib-object.h> | 8 #include <glib-object.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 } | 889 } |
890 | 890 |
891 void GlobalMenuBarX11::OnEditProfileItemActivated(DbusmenuMenuitem* sender, | 891 void GlobalMenuBarX11::OnEditProfileItemActivated(DbusmenuMenuitem* sender, |
892 unsigned int timestamp) { | 892 unsigned int timestamp) { |
893 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); | 893 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); |
894 avatar_menu_->EditProfile(id); | 894 avatar_menu_->EditProfile(id); |
895 } | 895 } |
896 | 896 |
897 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, | 897 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, |
898 unsigned int timestamp) { | 898 unsigned int timestamp) { |
899 profiles::CreateAndSwitchToNewProfile(chrome::HOST_DESKTOP_TYPE_NATIVE, | 899 profiles::CreateAndSwitchToNewProfile(ProfileManager::CreateCallback(), |
900 ProfileManager::CreateCallback(), | |
901 ProfileMetrics::ADD_NEW_USER_MENU); | 900 ProfileMetrics::ADD_NEW_USER_MENU); |
902 } | 901 } |
OLD | NEW |