| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/live_extensions_sync_test_base.h" | 5 #include "chrome/test/live_sync/live_extensions_sync_test_base.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/extensions/extensions_service.h" | 15 #include "chrome/browser/extensions/extensions_service.h" |
| 16 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
| 18 #include "chrome/common/extensions/extension_constants.h" | 18 #include "chrome/common/extensions/extension_constants.h" |
| 19 | 19 |
| 20 LiveExtensionsSyncTestBase::LiveExtensionsSyncTestBase(TestType test_type) | 20 LiveExtensionsSyncTestBase::LiveExtensionsSyncTestBase(TestType test_type) |
| 21 : LiveSyncTest(test_type) {} | 21 : LiveSyncTest(test_type) {} |
| 22 | 22 |
| 23 LiveExtensionsSyncTestBase::~LiveExtensionsSyncTestBase() {} | 23 LiveExtensionsSyncTestBase::~LiveExtensionsSyncTestBase() {} |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // extension from the extensions service's copy. | 116 // extension from the extensions service's copy. |
| 117 PendingExtensionMap pending_extensions = | 117 PendingExtensionMap pending_extensions = |
| 118 profile->GetExtensionsService()->pending_extensions(); | 118 profile->GetExtensionsService()->pending_extensions(); |
| 119 for (PendingExtensionMap::const_iterator it = pending_extensions.begin(); | 119 for (PendingExtensionMap::const_iterator it = pending_extensions.begin(); |
| 120 it != pending_extensions.end(); ++it) { | 120 it != pending_extensions.end(); ++it) { |
| 121 ExtensionIdMap::const_iterator it2 = extensions_by_id_.find(it->first); | 121 ExtensionIdMap::const_iterator it2 = extensions_by_id_.find(it->first); |
| 122 CHECK(it2 != extensions_by_id_.end()); | 122 CHECK(it2 != extensions_by_id_.end()); |
| 123 InstallExtension(profile, it2->second); | 123 InstallExtension(profile, it2->second); |
| 124 } | 124 } |
| 125 } | 125 } |
| OLD | NEW |