OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/bookmarks/bookmark_storage.h" | 5 #include "chrome/browser/bookmarks/bookmark_storage.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/histogram.h" | 9 #include "base/histogram.h" |
10 #include "base/json_writer.h" | |
11 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
12 #include "base/thread.h" | 11 #include "base/thread.h" |
13 #include "base/time.h" | 12 #include "base/time.h" |
14 #include "chrome/browser/bookmarks/bookmark_codec.h" | 13 #include "chrome/browser/bookmarks/bookmark_codec.h" |
15 #include "chrome/browser/bookmarks/bookmark_model.h" | 14 #include "chrome/browser/bookmarks/bookmark_model.h" |
16 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
18 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/json_value_serializer.h" | 18 #include "chrome/common/json_value_serializer.h" |
20 #include "chrome/common/notification_source.h" | 19 #include "chrome/common/notification_source.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 271 } |
273 | 272 |
274 void BookmarkStorage::RunTaskOnBackendThread(Task* task) const { | 273 void BookmarkStorage::RunTaskOnBackendThread(Task* task) const { |
275 if (backend_thread()) { | 274 if (backend_thread()) { |
276 backend_thread()->message_loop()->PostTask(FROM_HERE, task); | 275 backend_thread()->message_loop()->PostTask(FROM_HERE, task); |
277 } else { | 276 } else { |
278 task->Run(); | 277 task->Run(); |
279 delete task; | 278 delete task; |
280 } | 279 } |
281 } | 280 } |
OLD | NEW |