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

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

Issue 9702103: Clean up first run: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 "chrome/browser/ui/cocoa/importer/import_progress_dialog_cocoa.h" 5 #import "chrome/browser/ui/cocoa/importer/import_progress_dialog_cocoa.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/bundle_locations.h" 8 #include "base/mac/bundle_locations.h"
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void ImporterObserverBridge::ImportItemEnded(importer::ImportItem item) { 173 void ImporterObserverBridge::ImportItemEnded(importer::ImportItem item) {
174 [owner_ ImportItemEnded:item]; 174 [owner_ ImportItemEnded:item];
175 } 175 }
176 176
177 void ImporterObserverBridge::ImportEnded() { 177 void ImporterObserverBridge::ImportEnded() {
178 [owner_ ImportEnded]; 178 [owner_ ImportEnded];
179 } 179 }
180 180
181 namespace importer { 181 namespace importer {
182 182
183 void ShowImportProgressDialog(gfx::NativeWindow parent_window, 183 void ShowImportProgressDialog(uint16 items,
184 uint16 items,
185 ImporterHost* importer_host, 184 ImporterHost* importer_host,
186 ImporterObserver* importer_observer, 185 ImporterObserver* importer_observer,
187 const SourceProfile& source_profile, 186 const SourceProfile& source_profile,
188 Profile* target_profile, 187 Profile* target_profile,
189 bool first_run) { 188 bool first_run) {
190 DCHECK(items != 0); 189 DCHECK(items != 0);
191 190
192 // |progress_dialog| is responsible for deleting itself. 191 // |progress_dialog| is responsible for deleting itself.
193 ImportProgressDialogController* progress_dialog = 192 ImportProgressDialogController* progress_dialog =
194 [[ImportProgressDialogController alloc] 193 [[ImportProgressDialogController alloc]
(...skipping 13 matching lines...) Expand all
208 [progress_dialog showWindow:nil]; 207 [progress_dialog showWindow:nil];
209 while (true) { 208 while (true) {
210 if ([NSApp runModalSession:session] != NSRunContinuesResponse) 209 if ([NSApp runModalSession:session] != NSRunContinuesResponse)
211 break; 210 break;
212 MessageLoop::current()->RunAllPending(); 211 MessageLoop::current()->RunAllPending();
213 } 212 }
214 [NSApp endModalSession:session]; 213 [NSApp endModalSession:session];
215 } 214 }
216 215
217 } // namespace importer 216 } // namespace importer
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer_progress_dialog.h ('k') | chrome/browser/ui/gtk/importer/import_progress_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698