| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/history/android/bookmark_model_sql_handler.h" | 5 #include "chrome/browser/history/android/bookmark_model_sql_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/history/url_database.h" | 10 #include "chrome/browser/history/url_database.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "components/bookmarks/core/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
| 13 #include "components/bookmarks/core/browser/bookmark_utils.h" | 13 #include "components/bookmarks/browser/bookmark_utils.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 | 15 |
| 16 using base::Time; | 16 using base::Time; |
| 17 using content::BrowserThread; | 17 using content::BrowserThread; |
| 18 | 18 |
| 19 namespace history { | 19 namespace history { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // The interesting columns of this handler. | 23 // The interesting columns of this handler. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind( | 165 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::Bind( |
| 166 &BookmarkModelSQLHandler::Task::AddBookmarkToMobileFolder, | 166 &BookmarkModelSQLHandler::Task::AddBookmarkToMobileFolder, |
| 167 scoped_refptr<BookmarkModelSQLHandler::Task>( | 167 scoped_refptr<BookmarkModelSQLHandler::Task>( |
| 168 new BookmarkModelSQLHandler::Task()), | 168 new BookmarkModelSQLHandler::Task()), |
| 169 row->url(), row->title())); | 169 row->url(), row->title())); |
| 170 } | 170 } |
| 171 return true; | 171 return true; |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace history | 174 } // namespace history |
| OLD | NEW |