| 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/sync/test/integration/sync_extension_helper.h" | 5 #include "chrome/browser/sync/test/integration/sync_extension_helper.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/extensions/pending_extension_manager.h" | 22 #include "chrome/browser/extensions/pending_extension_manager.h" |
| 23 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" | 23 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" |
| 24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | 25 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
| 26 #include "chrome/browser/sync/test/integration/sync_test.h" | 26 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 27 #include "components/crx_file/id_util.h" | 27 #include "components/crx_file/id_util.h" |
| 28 #include "components/sync/model/string_ordinal.h" | 28 #include "components/sync/model/string_ordinal.h" |
| 29 #include "extensions/browser/extension_prefs.h" | 29 #include "extensions/browser/extension_prefs.h" |
| 30 #include "extensions/browser/extension_registry.h" | 30 #include "extensions/browser/extension_registry.h" |
| 31 #include "extensions/browser/extension_system.h" | 31 #include "extensions/browser/extension_system.h" |
| 32 #include "extensions/browser/extension_util.h" |
| 32 #include "extensions/browser/install_flag.h" | 33 #include "extensions/browser/install_flag.h" |
| 33 #include "extensions/browser/uninstall_reason.h" | 34 #include "extensions/browser/uninstall_reason.h" |
| 34 #include "extensions/common/extension.h" | 35 #include "extensions/common/extension.h" |
| 35 #include "extensions/common/extension_set.h" | 36 #include "extensions/common/extension_set.h" |
| 36 #include "extensions/common/manifest_constants.h" | 37 #include "extensions/common/manifest_constants.h" |
| 37 #include "testing/gtest/include/gtest/gtest.h" | 38 #include "testing/gtest/include/gtest/gtest.h" |
| 38 | 39 |
| 39 using extensions::Extension; | 40 using extensions::Extension; |
| 40 using extensions::ExtensionPrefs; | 41 using extensions::ExtensionPrefs; |
| 41 using extensions::ExtensionRegistry; | 42 using extensions::ExtensionRegistry; |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 EXPECT_EQ(expected_id, extension->id()); | 433 EXPECT_EQ(expected_id, extension->id()); |
| 433 return nullptr; | 434 return nullptr; |
| 434 } | 435 } |
| 435 DVLOG(2) << "created extension with name = " | 436 DVLOG(2) << "created extension with name = " |
| 436 << name << ", id = " << expected_id; | 437 << name << ", id = " << expected_id; |
| 437 (it->second)[name] = extension; | 438 (it->second)[name] = extension; |
| 438 id_to_name_[expected_id] = name; | 439 id_to_name_[expected_id] = name; |
| 439 id_to_type_[expected_id] = type; | 440 id_to_type_[expected_id] = type; |
| 440 return extension; | 441 return extension; |
| 441 } | 442 } |
| OLD | NEW |