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

Side by Side Diff: chrome/browser/first_run/first_run_import_observer.cc

Issue 14322002: Remove unused ImportProgressDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted ImportFromBrowser back to returning an int. Created 7 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/first_run/first_run_import_observer.h"
6
7 #include "base/message_loop.h"
8 #include "content/public/common/result_codes.h"
9
10 FirstRunImportObserver::FirstRunImportObserver()
11 : loop_running_(false), import_result_(content::RESULT_CODE_NORMAL_EXIT) {
12 }
13
14 FirstRunImportObserver::~FirstRunImportObserver() {
15 }
16
17 void FirstRunImportObserver::RunLoop() {
18 loop_running_ = true;
19 MessageLoop::current()->Run();
20 }
21
22 void FirstRunImportObserver::Finish() {
23 if (loop_running_)
24 MessageLoop::current()->Quit();
25 }
26
27 void FirstRunImportObserver::ImportCompleted() {
28 import_result_ = content::RESULT_CODE_NORMAL_EXIT;
29 Finish();
30 }
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run_import_observer.h ('k') | chrome/browser/first_run/first_run_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698