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

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_container_view.cc

Issue 14307023: chrome: Use base::MessageLoop. (Part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
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/ui/views/infobars/infobar_container_view.h" 5 #include "chrome/browser/ui/views/infobars/infobar_container_view.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/ui/view_ids.h" 8 #include "chrome/browser/ui/view_ids.h"
9 #include "chrome/browser/ui/views/infobars/infobar_view.h" 9 #include "chrome/browser/ui/views/infobars/infobar_view.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar, 56 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar,
57 size_t position) { 57 size_t position) {
58 AddChildViewAt(static_cast<InfoBarView*>(infobar), 58 AddChildViewAt(static_cast<InfoBarView*>(infobar),
59 static_cast<int>(position)); 59 static_cast<int>(position));
60 } 60 }
61 61
62 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { 62 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) {
63 RemoveChildView(static_cast<InfoBarView*>(infobar)); 63 RemoveChildView(static_cast<InfoBarView*>(infobar));
64 MessageLoop::current()->DeleteSoon(FROM_HERE, infobar); 64 base::MessageLoop::current()->DeleteSoon(FROM_HERE, infobar);
65 } 65 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/importer/import_lock_dialog_view.cc ('k') | chrome/browser/ui/views/keyboard_access_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698