| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | |
| 8 #include "base/prefs/scoped_user_pref_update.h" | |
| 9 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 10 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
| 11 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 12 #include "chrome/browser/extensions/extension_web_ui.h" | 10 #include "chrome/browser/extensions/extension_web_ui.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 16 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" | 14 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" |
| 17 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 18 #include "chrome/test/base/ui_test_utils.h" | 16 #include "chrome/test/base/ui_test_utils.h" |
| 17 #include "components/prefs/pref_service.h" |
| 18 #include "components/prefs/scoped_user_pref_update.h" |
| 19 #include "content/public/browser/navigation_entry.h" | 19 #include "content/public/browser/navigation_entry.h" |
| 20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 21 #include "extensions/common/constants.h" | 21 #include "extensions/common/constants.h" |
| 22 #include "extensions/test/extension_test_message_listener.h" | 22 #include "extensions/test/extension_test_message_listener.h" |
| 23 #include "extensions/test/result_catcher.h" | 23 #include "extensions/test/result_catcher.h" |
| 24 | 24 |
| 25 using content::WebContents; | 25 using content::WebContents; |
| 26 | 26 |
| 27 namespace extensions { | 27 namespace extensions { |
| 28 | 28 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 } | 248 } |
| 249 | 249 |
| 250 ASSERT_FALSE(CheckHistoryOverridesContainsNoDupes()); | 250 ASSERT_FALSE(CheckHistoryOverridesContainsNoDupes()); |
| 251 | 251 |
| 252 ExtensionWebUI::InitializeChromeURLOverrides(profile()); | 252 ExtensionWebUI::InitializeChromeURLOverrides(profile()); |
| 253 | 253 |
| 254 ASSERT_TRUE(CheckHistoryOverridesContainsNoDupes()); | 254 ASSERT_TRUE(CheckHistoryOverridesContainsNoDupes()); |
| 255 } | 255 } |
| 256 | 256 |
| 257 } // namespace extensions | 257 } // namespace extensions |
| OLD | NEW |