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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/stl_util-inl.h" | 6 #include "base/stl_util.h" |
7 #include "chrome/browser/extensions/autoupdate_interceptor.h" | 7 #include "chrome/browser/extensions/autoupdate_interceptor.h" |
8 #include "chrome/browser/extensions/extension_browsertest.h" | 8 #include "chrome/browser/extensions/extension_browsertest.h" |
9 #include "chrome/browser/extensions/extension_host.h" | 9 #include "chrome/browser/extensions/extension_host.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
11 #include "chrome/browser/extensions/extension_test_message_listener.h" | 11 #include "chrome/browser/extensions/extension_test_message_listener.h" |
12 #include "chrome/browser/extensions/extension_updater.h" | 12 #include "chrome/browser/extensions/extension_updater.h" |
13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 14 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 // Check that emptying the list triggers uninstall. | 510 // Check that emptying the list triggers uninstall. |
511 { | 511 { |
512 prefs->ClearPref(prefs::kExtensionInstallForceList); | 512 prefs->ClearPref(prefs::kExtensionInstallForceList); |
513 } | 513 } |
514 EXPECT_EQ(size_before + 1, extensions->size()); | 514 EXPECT_EQ(size_before + 1, extensions->size()); |
515 ExtensionList::const_iterator i; | 515 ExtensionList::const_iterator i; |
516 for (i = extensions->begin(); i != extensions->end(); ++i) | 516 for (i = extensions->begin(); i != extensions->end(); ++i) |
517 EXPECT_NE(kExtensionId, (*i)->id()); | 517 EXPECT_NE(kExtensionId, (*i)->id()); |
518 } | 518 } |
OLD | NEW |