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

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

Issue 1545153002: Switch to standard integer types in chrome/browser/ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 #include <stddef.h>
9 10
10 #include "base/debug/leak_annotations.h" 11 #include "base/debug/leak_annotations.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h"
12 #include "base/prefs/pref_service.h" 14 #include "base/prefs/pref_service.h"
13 #include "base/stl_util.h" 15 #include "base/stl_util.h"
14 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
16 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
17 #include "chrome/app/chrome_command_ids.h" 19 #include "chrome/app/chrome_command_ids.h"
18 #include "chrome/browser/browser_process.h" 20 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/history/top_sites_factory.h" 21 #include "chrome/browser/history/top_sites_factory.h"
20 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/profiles/profile_info_cache.h" 23 #include "chrome/browser/profiles/profile_info_cache.h"
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); 892 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId));
891 avatar_menu_->EditProfile(id); 893 avatar_menu_->EditProfile(id);
892 } 894 }
893 895
894 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, 896 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender,
895 unsigned int timestamp) { 897 unsigned int timestamp) {
896 profiles::CreateAndSwitchToNewProfile(chrome::HOST_DESKTOP_TYPE_NATIVE, 898 profiles::CreateAndSwitchToNewProfile(chrome::HOST_DESKTOP_TYPE_NATIVE,
897 ProfileManager::CreateCallback(), 899 ProfileManager::CreateCallback(),
898 ProfileMetrics::ADD_NEW_USER_MENU); 900 ProfileMetrics::ADD_NEW_USER_MENU);
899 } 901 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/global_menu_bar_x11.h ('k') | chrome/browser/ui/views/frame/immersive_mode_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698