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

Side by Side Diff: chrome/browser/ui/views/frame/global_menu_bar_x11.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 months 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/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 9
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } 884 }
885 885
886 void GlobalMenuBarX11::OnEditProfileItemActivated(DbusmenuMenuitem* sender, 886 void GlobalMenuBarX11::OnEditProfileItemActivated(DbusmenuMenuitem* sender,
887 unsigned int timestamp) { 887 unsigned int timestamp) {
888 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); 888 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId));
889 avatar_menu_->EditProfile(id); 889 avatar_menu_->EditProfile(id);
890 } 890 }
891 891
892 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, 892 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender,
893 unsigned int timestamp) { 893 unsigned int timestamp) {
894 profiles::CreateAndSwitchToNewProfile(chrome::HOST_DESKTOP_TYPE_NATIVE, 894 profiles::CreateAndSwitchToNewProfile(ui::HOST_DESKTOP_TYPE_NATIVE,
895 ProfileManager::CreateCallback(), 895 ProfileManager::CreateCallback(),
896 ProfileMetrics::ADD_NEW_USER_MENU); 896 ProfileMetrics::ADD_NEW_USER_MENU);
897 } 897 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698