OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/android/bookmarks/bookmarks_bridge.h" | 5 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h" |
6 | 6 |
7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "chrome/browser/bookmarks/bookmark_model.h" | |
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
11 #include "chrome/browser/bookmarks/bookmark_utils.h" | |
12 #include "chrome/browser/profiles/incognito_helpers.h" | 10 #include "chrome/browser/profiles/incognito_helpers.h" |
13 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/profiles/profile_android.h" | 12 #include "chrome/browser/profiles/profile_android.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/browser/signin/signin_manager_factory.h" | 14 #include "chrome/browser/signin/signin_manager_factory.h" |
17 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 16 #include "components/bookmarks/core/browser/bookmark_model.h" |
| 17 #include "components/bookmarks/core/browser/bookmark_utils.h" |
18 #include "components/signin/core/browser/signin_manager.h" | 18 #include "components/signin/core/browser/signin_manager.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "jni/BookmarksBridge_jni.h" | 20 #include "jni/BookmarksBridge_jni.h" |
21 | 21 |
22 using base::android::AttachCurrentThread; | 22 using base::android::AttachCurrentThread; |
23 using base::android::ConvertUTF8ToJavaString; | 23 using base::android::ConvertUTF8ToJavaString; |
24 using base::android::ConvertUTF16ToJavaString; | 24 using base::android::ConvertUTF16ToJavaString; |
25 using base::android::ScopedJavaLocalRef; | 25 using base::android::ScopedJavaLocalRef; |
26 using base::android::ScopedJavaGlobalRef; | 26 using base::android::ScopedJavaGlobalRef; |
27 using content::BrowserThread; | 27 using content::BrowserThread; |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 BookmarkModelChanged(); | 487 BookmarkModelChanged(); |
488 } | 488 } |
489 | 489 |
490 void BookmarksBridge::PartnerShimLoaded(PartnerBookmarksShim* shim) { | 490 void BookmarksBridge::PartnerShimLoaded(PartnerBookmarksShim* shim) { |
491 NotifyIfDoneLoading(); | 491 NotifyIfDoneLoading(); |
492 } | 492 } |
493 | 493 |
494 void BookmarksBridge::ShimBeingDeleted(PartnerBookmarksShim* shim) { | 494 void BookmarksBridge::ShimBeingDeleted(PartnerBookmarksShim* shim) { |
495 partner_bookmarks_shim_ = NULL; | 495 partner_bookmarks_shim_ = NULL; |
496 } | 496 } |
OLD | NEW |