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 "chrome/browser/ui/browser_init.h" | 5 #include "chrome/browser/ui/browser_init.h" |
6 | 6 |
7 #include <algorithm> // For max(). | 7 #include <algorithm> // For max(). |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" | 45 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" |
46 #include "chrome/browser/tabs/pinned_tab_codec.h" | 46 #include "chrome/browser/tabs/pinned_tab_codec.h" |
47 #include "chrome/browser/tabs/tab_strip_model.h" | 47 #include "chrome/browser/tabs/tab_strip_model.h" |
48 #include "chrome/browser/ui/browser_navigator.h" | 48 #include "chrome/browser/ui/browser_navigator.h" |
49 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 49 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
50 #include "chrome/common/chrome_constants.h" | 50 #include "chrome/common/chrome_constants.h" |
51 #include "chrome/common/chrome_paths.h" | 51 #include "chrome/common/chrome_paths.h" |
52 #include "chrome/common/chrome_switches.h" | 52 #include "chrome/common/chrome_switches.h" |
53 #include "chrome/common/extensions/extension_constants.h" | 53 #include "chrome/common/extensions/extension_constants.h" |
54 #include "chrome/common/pref_names.h" | 54 #include "chrome/common/pref_names.h" |
55 #include "chrome/common/result_codes.h" | |
56 #include "chrome/common/url_constants.h" | 55 #include "chrome/common/url_constants.h" |
57 #include "chrome/installer/util/browser_distribution.h" | 56 #include "chrome/installer/util/browser_distribution.h" |
58 #include "content/browser/browser_thread.h" | 57 #include "content/browser/browser_thread.h" |
59 #include "content/browser/child_process_security_policy.h" | 58 #include "content/browser/child_process_security_policy.h" |
60 #include "content/browser/renderer_host/render_process_host.h" | 59 #include "content/browser/renderer_host/render_process_host.h" |
61 #include "content/browser/tab_contents/navigation_controller.h" | 60 #include "content/browser/tab_contents/navigation_controller.h" |
62 #include "content/browser/tab_contents/tab_contents.h" | 61 #include "content/browser/tab_contents/tab_contents.h" |
63 #include "content/browser/tab_contents/tab_contents_view.h" | 62 #include "content/browser/tab_contents/tab_contents_view.h" |
| 63 #include "content/common/result_codes.h" |
64 #include "grit/chromium_strings.h" | 64 #include "grit/chromium_strings.h" |
65 #include "grit/generated_resources.h" | 65 #include "grit/generated_resources.h" |
66 #include "grit/locale_settings.h" | 66 #include "grit/locale_settings.h" |
67 #include "grit/theme_resources.h" | 67 #include "grit/theme_resources.h" |
68 #include "net/base/net_util.h" | 68 #include "net/base/net_util.h" |
69 #include "net/url_request/url_request.h" | 69 #include "net/url_request/url_request.h" |
70 #include "ui/base/l10n/l10n_util.h" | 70 #include "ui/base/l10n/l10n_util.h" |
71 #include "ui/base/resource/resource_bundle.h" | 71 #include "ui/base/resource/resource_bundle.h" |
72 #include "webkit/glue/webkit_glue.h" | 72 #include "webkit/glue/webkit_glue.h" |
73 | 73 |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 return false; | 1379 return false; |
1380 automation->SetExpectedTabCount(expected_tabs); | 1380 automation->SetExpectedTabCount(expected_tabs); |
1381 | 1381 |
1382 AutomationProviderList* list = | 1382 AutomationProviderList* list = |
1383 g_browser_process->InitAutomationProviderList(); | 1383 g_browser_process->InitAutomationProviderList(); |
1384 DCHECK(list); | 1384 DCHECK(list); |
1385 list->AddProvider(automation); | 1385 list->AddProvider(automation); |
1386 | 1386 |
1387 return true; | 1387 return true; |
1388 } | 1388 } |
OLD | NEW |