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

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

Issue 8414024: Analyzed the problem and tested 30+ times the affected and related tests without problems. Test f... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/threading/thread_restrictions.h" 9 #include "base/threading/thread_restrictions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 GURL(), content_url, string16(), string16(), 73 GURL(), content_url, string16(), string16(),
74 new DummyNotificationDelegate(base::IntToString(id_count_++)))); 74 new DummyNotificationDelegate(base::IntToString(id_count_++))));
75 75
76 // Allowing IO access is required here to cover the corner case where 76 // Allowing IO access is required here to cover the corner case where
77 // there is no last used profile and the default one is loaded. 77 // there is no last used profile and the default one is loaded.
78 // IO access won't be required for normal uses. 78 // IO access won't be required for normal uses.
79 base::ThreadRestrictions::ScopedAllowIO allow_io; 79 base::ThreadRestrictions::ScopedAllowIO allow_io;
80 g_browser_process->notification_ui_manager()->Add( 80 g_browser_process->notification_ui_manager()->Add(
81 *notification_.get(), ProfileManager::GetLastUsedProfile()); 81 *notification_.get(), ProfileManager::GetLastUsedProfile());
82 } 82 }
OLDNEW
« no previous file with comments | « chrome/browser/status_icons/desktop_notification_balloon.h ('k') | chrome/browser/ui/cocoa/status_icons/status_icon_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698