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

Side by Side Diff: chrome/browser/status_icons/desktop_notification_balloon.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/status_icons/desktop_notification_balloon.h" 5 #include "chrome/browser/status_icons/desktop_notification_balloon.h"
6 6
7 #include <stddef.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/location.h" 10 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
10 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
11 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
12 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
13 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/notifications/notification.h" 16 #include "chrome/browser/notifications/notification.h"
15 #include "chrome/browser/notifications/notification_delegate.h" 17 #include "chrome/browser/notifications/notification_delegate.h"
16 #include "chrome/browser/notifications/notification_ui_manager.h" 18 #include "chrome/browser/notifications/notification_ui_manager.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 new DummyNotificationDelegate(base::IntToString(id_count_++), profile_); 90 new DummyNotificationDelegate(base::IntToString(id_count_++), profile_);
89 Notification notification(message_center::NOTIFICATION_TYPE_SIMPLE, title, 91 Notification notification(message_center::NOTIFICATION_TYPE_SIMPLE, title,
90 contents, gfx::Image(icon), notifier_id, base::string16(), GURL(), 92 contents, gfx::Image(icon), notifier_id, base::string16(), GURL(),
91 std::string(), message_center::RichNotificationData(), delegate); 93 std::string(), message_center::RichNotificationData(), delegate);
92 94
93 g_browser_process->notification_ui_manager()->Add(notification, profile); 95 g_browser_process->notification_ui_manager()->Add(notification, profile);
94 96
95 notification_id_ = notification.delegate_id(); 97 notification_id_ = notification.delegate_id();
96 profile_ = profile; 98 profile_ = profile;
97 } 99 }
OLDNEW
« no previous file with comments | « chrome/browser/status_icons/desktop_notification_balloon.h ('k') | chrome/browser/status_icons/status_icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698