| OLD | NEW |
| 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/test/base/bookmark_load_observer.h" | 5 #include "chrome/test/base/bookmark_load_observer.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "chrome/test/base/ui_test_utils.h" |
| 8 | 8 |
| 9 BookmarkLoadObserver::BookmarkLoadObserver() {} | 9 BookmarkLoadObserver::BookmarkLoadObserver(const base::Closure& quit_task) |
| 10 : quit_task_(quit_task) {} |
| 10 | 11 |
| 11 BookmarkLoadObserver::~BookmarkLoadObserver() {} | 12 BookmarkLoadObserver::~BookmarkLoadObserver() {} |
| 12 | 13 |
| 13 void BookmarkLoadObserver::Loaded(BookmarkModel* model, bool ids_reassigned) { | 14 void BookmarkLoadObserver::Loaded(BookmarkModel* model, bool ids_reassigned) { |
| 14 MessageLoop::current()->Quit(); | 15 quit_task_.Run(); |
| 15 } | 16 } |
| OLD | NEW |