OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <algorithm> | 5 #include <algorithm> |
6 #include <set> | 6 #include <set> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | |
14 #include "base/files/file_enumerator.h" | 13 #include "base/files/file_enumerator.h" |
| 14 #include "base/files/file_util.h" |
15 #include "base/files/scoped_temp_dir.h" | 15 #include "base/files/scoped_temp_dir.h" |
16 #include "base/json/json_file_value_serializer.h" | 16 #include "base/json/json_file_value_serializer.h" |
17 #include "base/json/json_reader.h" | 17 #include "base/json/json_reader.h" |
18 #include "base/json/json_string_value_serializer.h" | 18 #include "base/json/json_string_value_serializer.h" |
19 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/message_loop/message_loop.h" | 21 #include "base/message_loop/message_loop.h" |
22 #include "base/prefs/scoped_user_pref_update.h" | 22 #include "base/prefs/scoped_user_pref_update.h" |
23 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
24 #include "base/strings/string16.h" | 24 #include "base/strings/string16.h" |
(...skipping 7128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7153 | 7153 |
7154 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED, | 7154 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED, |
7155 content::Source<Profile>(profile()), | 7155 content::Source<Profile>(profile()), |
7156 content::NotificationService::NoDetails()); | 7156 content::NotificationService::NoDetails()); |
7157 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_); | 7157 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_); |
7158 EXPECT_EQ(0u, registry()->enabled_extensions().size()); | 7158 EXPECT_EQ(0u, registry()->enabled_extensions().size()); |
7159 EXPECT_EQ(0u, registry()->disabled_extensions().size()); | 7159 EXPECT_EQ(0u, registry()->disabled_extensions().size()); |
7160 EXPECT_EQ(0u, registry()->terminated_extensions().size()); | 7160 EXPECT_EQ(0u, registry()->terminated_extensions().size()); |
7161 EXPECT_EQ(0u, registry()->blacklisted_extensions().size()); | 7161 EXPECT_EQ(0u, registry()->blacklisted_extensions().size()); |
7162 } | 7162 } |
OLD | NEW |