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

Side by Side Diff: chrome/browser/ui/views/importer/import_lock_dialog_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) 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/ui/views/importer/import_lock_dialog_view.h" 5 #include "chrome/browser/ui/views/importer/import_lock_dialog_view.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/importer/importer_lock_dialog.h" 10 #include "chrome/browser/importer/importer_lock_dialog.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ui::DialogButton button) const { 79 ui::DialogButton button) const {
80 return l10n_util::GetStringUTF16((button == ui::DIALOG_BUTTON_OK) ? 80 return l10n_util::GetStringUTF16((button == ui::DIALOG_BUTTON_OK) ?
81 IDS_IMPORTER_LOCK_OK : IDS_IMPORTER_LOCK_CANCEL); 81 IDS_IMPORTER_LOCK_OK : IDS_IMPORTER_LOCK_CANCEL);
82 } 82 }
83 83
84 string16 ImportLockDialogView::GetWindowTitle() const { 84 string16 ImportLockDialogView::GetWindowTitle() const {
85 return l10n_util::GetStringUTF16(IDS_IMPORTER_LOCK_TITLE); 85 return l10n_util::GetStringUTF16(IDS_IMPORTER_LOCK_TITLE);
86 } 86 }
87 87
88 bool ImportLockDialogView::Accept() { 88 bool ImportLockDialogView::Accept() {
89 MessageLoop::current()->PostTask(FROM_HERE, 89 base::MessageLoop::current()->PostTask(FROM_HERE,
90 base::Bind(callback_, true)); 90 base::Bind(callback_, true));
91 return true; 91 return true;
92 } 92 }
93 93
94 bool ImportLockDialogView::Cancel() { 94 bool ImportLockDialogView::Cancel() {
95 MessageLoop::current()->PostTask(FROM_HERE, 95 base::MessageLoop::current()->PostTask(FROM_HERE,
96 base::Bind(callback_, false)); 96 base::Bind(callback_, false));
97 return true; 97 return true;
98 } 98 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/fullscreen_exit_bubble_views.cc ('k') | chrome/browser/ui/views/infobars/infobar_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698