| 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/live_sync/apps_helper.h" | 5 #include "chrome/browser/sync/test/live_sync/apps_helper.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/sync/test/live_sync/sync_datatype_helper.h" |
| 11 #include "chrome/browser/sync/test/live_sync/sync_extension_helper.h" |
| 10 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
| 11 #include "chrome/test/live_sync/sync_datatype_helper.h" | |
| 12 #include "chrome/test/live_sync/sync_extension_helper.h" | |
| 13 | 13 |
| 14 using sync_datatype_helper::test; | 14 using sync_datatype_helper::test; |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 std::string CreateFakeAppName(int index) { | 18 std::string CreateFakeAppName(int index) { |
| 19 return "fakeapp" + base::IntToString(index); | 19 return "fakeapp" + base::IntToString(index); |
| 20 } | 20 } |
| 21 | 21 |
| 22 } // namespace | 22 } // namespace |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return SyncExtensionHelper::GetInstance()->IncognitoDisableExtension( | 69 return SyncExtensionHelper::GetInstance()->IncognitoDisableExtension( |
| 70 profile, CreateFakeAppName(index)); | 70 profile, CreateFakeAppName(index)); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void InstallAppsPendingForSync(Profile* profile) { | 73 void InstallAppsPendingForSync(Profile* profile) { |
| 74 SyncExtensionHelper::GetInstance()->InstallExtensionsPendingForSync( | 74 SyncExtensionHelper::GetInstance()->InstallExtensionsPendingForSync( |
| 75 profile, Extension::TYPE_HOSTED_APP); | 75 profile, Extension::TYPE_HOSTED_APP); |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace apps_helper | 78 } // namespace apps_helper |
| OLD | NEW |