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

Side by Side Diff: chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm

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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_nsobject.h" 9 #include "base/memory/scoped_nsobject.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 12 matching lines...) Expand all
23 scoped_nsobject<NSAlert> lock_alert([[NSAlert alloc] init]); 23 scoped_nsobject<NSAlert> lock_alert([[NSAlert alloc] init]);
24 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup( 24 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup(
25 IDS_IMPORTER_LOCK_OK)]; 25 IDS_IMPORTER_LOCK_OK)];
26 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup( 26 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup(
27 IDS_IMPORTER_LOCK_CANCEL)]; 27 IDS_IMPORTER_LOCK_CANCEL)];
28 [lock_alert setInformativeText:l10n_util::GetNSStringWithFixup( 28 [lock_alert setInformativeText:l10n_util::GetNSStringWithFixup(
29 IDS_IMPORTER_LOCK_TEXT)]; 29 IDS_IMPORTER_LOCK_TEXT)];
30 [lock_alert setMessageText:l10n_util::GetNSStringWithFixup( 30 [lock_alert setMessageText:l10n_util::GetNSStringWithFixup(
31 IDS_IMPORTER_LOCK_TITLE)]; 31 IDS_IMPORTER_LOCK_TITLE)];
32 32
33 MessageLoop::current()->PostTask( 33 base::MessageLoop::current()->PostTask(
34 FROM_HERE, 34 FROM_HERE,
35 base::Bind(callback, [lock_alert runModal] == NSAlertFirstButtonReturn)); 35 base::Bind(callback, [lock_alert runModal] == NSAlertFirstButtonReturn));
36 content::RecordAction(UserMetricsAction("ImportLockDialogCocoa_Shown")); 36 content::RecordAction(UserMetricsAction("ImportLockDialogCocoa_Shown"));
37 } 37 }
38 38
39 } // namespace importer 39 } // namespace importer
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/first_run_dialog.mm ('k') | chrome/browser/ui/cocoa/keystone_infobar_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698