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/sync/test/integration/sync_app_list_helper.h" | 5 #include "chrome/browser/sync/test/integration/sync_app_list_helper.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | 9 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
10 #include "chrome/browser/sync/test/integration/sync_test.h" | 10 #include "chrome/browser/sync/test/integration/sync_test.h" |
11 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 11 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
12 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" | 12 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
13 #include "chrome/common/extensions/sync_helper.h" | 13 #include "chrome/common/extensions/sync_helper.h" |
14 #include "extensions/browser/app_sorting.h" | 14 #include "extensions/browser/app_sorting.h" |
15 #include "extensions/browser/extension_prefs.h" | 15 #include "extensions/browser/extension_prefs.h" |
16 #include "extensions/browser/extension_system.h" | 16 #include "extensions/browser/extension_system.h" |
17 #include "ui/app_list/app_list_folder_item.h" | 17 #include "ui/app_list/app_list_folder_item.h" |
18 #include "ui/app_list/app_list_item.h" | 18 #include "ui/app_list/app_list_item.h" |
19 #include "ui/app_list/app_list_model.h" | 19 #include "ui/app_list/app_list_model.h" |
20 | 20 |
21 using app_list::AppListFolderItem; | 21 using app_list::AppListFolderItem; |
22 using app_list::AppListItem; | 22 using app_list::AppListItem; |
23 using app_list::AppListItemList; | 23 using app_list::AppListItemList; |
24 using app_list::AppListSyncableService; | 24 using app_list::AppListSyncableService; |
25 using app_list::AppListSyncableServiceFactory; | 25 using app_list::AppListSyncableServiceFactory; |
26 | 26 |
27 SyncAppListHelper* SyncAppListHelper::GetInstance() { | 27 SyncAppListHelper* SyncAppListHelper::GetInstance() { |
28 SyncAppListHelper* instance = Singleton<SyncAppListHelper>::get(); | 28 SyncAppListHelper* instance = base::Singleton<SyncAppListHelper>::get(); |
29 instance->SetupIfNecessary(sync_datatype_helper::test()); | 29 instance->SetupIfNecessary(sync_datatype_helper::test()); |
30 return instance; | 30 return instance; |
31 } | 31 } |
32 | 32 |
33 SyncAppListHelper::SyncAppListHelper() : test_(NULL), setup_completed_(false) {} | 33 SyncAppListHelper::SyncAppListHelper() : test_(NULL), setup_completed_(false) {} |
34 | 34 |
35 SyncAppListHelper::~SyncAppListHelper() {} | 35 SyncAppListHelper::~SyncAppListHelper() {} |
36 | 36 |
37 void SyncAppListHelper::SetupIfNecessary(SyncTest* test) { | 37 void SyncAppListHelper::SetupIfNecessary(SyncTest* test) { |
38 if (setup_completed_) { | 38 if (setup_completed_) { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 base::StringPrintf(" Folder Item(%d): ", static_cast<int>(i)); | 184 base::StringPrintf(" Folder Item(%d): ", static_cast<int>(i)); |
185 PrintItem(profile, child, child_label); | 185 PrintItem(profile, child, child_label); |
186 } | 186 } |
187 return; | 187 return; |
188 } | 188 } |
189 DVLOG(1) << label << item->ToDebugString() | 189 DVLOG(1) << label << item->ToDebugString() |
190 << " Page: " << s->GetPageOrdinal(id).ToDebugString().substr(0, 8) | 190 << " Page: " << s->GetPageOrdinal(id).ToDebugString().substr(0, 8) |
191 << " Item: " | 191 << " Item: " |
192 << s->GetAppLaunchOrdinal(id).ToDebugString().substr(0, 8); | 192 << s->GetAppLaunchOrdinal(id).ToDebugString().substr(0, 8); |
193 } | 193 } |
OLD | NEW |