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/profiles/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
10 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/macros.h" | 14 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
16 #include "base/sequenced_task_runner.h" | 18 #include "base/sequenced_task_runner.h" |
17 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
18 #include "base/values.h" | 20 #include "base/values.h" |
19 #include "base/version.h" | 21 #include "base/version.h" |
| 22 #include "build/build_config.h" |
20 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/chrome_notification_types.h" | 24 #include "chrome/browser/chrome_notification_types.h" |
22 #include "chrome/browser/net/url_request_mock_util.h" | 25 #include "chrome/browser/net/url_request_mock_util.h" |
23 #include "chrome/browser/profiles/chrome_version_service.h" | 26 #include "chrome/browser/profiles/chrome_version_service.h" |
24 #include "chrome/browser/profiles/profile_impl.h" | 27 #include "chrome/browser/profiles/profile_impl.h" |
25 #include "chrome/browser/profiles/profile_manager.h" | 28 #include "chrome/browser/profiles/profile_manager.h" |
26 #include "chrome/browser/ui/browser.h" | 29 #include "chrome/browser/ui/browser.h" |
27 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 30 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
28 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
29 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 | 546 |
544 IN_PROC_BROWSER_TEST_F(ProfileBrowserTest, | 547 IN_PROC_BROWSER_TEST_F(ProfileBrowserTest, |
545 URLFetcherUsingExtensionContextDuringIncognitoTeardown) { | 548 URLFetcherUsingExtensionContextDuringIncognitoTeardown) { |
546 Browser* incognito_browser = | 549 Browser* incognito_browser = |
547 OpenURLOffTheRecord(browser()->profile(), GURL("about:blank")); | 550 OpenURLOffTheRecord(browser()->profile(), GURL("about:blank")); |
548 | 551 |
549 RunURLFetcherActiveDuringIncognitoTeardownTest( | 552 RunURLFetcherActiveDuringIncognitoTeardownTest( |
550 incognito_browser, | 553 incognito_browser, |
551 incognito_browser->profile()->GetRequestContextForExtensions()); | 554 incognito_browser->profile()->GetRequestContextForExtensions()); |
552 } | 555 } |
OLD | NEW |