Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: chrome/browser/extensions/extension_host.cc

Issue 6335001: Cleanup: Remove unneeded chrome/browser/prefs/pref_service.h usage.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/extensions/extension_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/singleton.h" 12 #include "base/singleton.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "chrome/browser/browser_list.h" 15 #include "chrome/browser/browser_list.h"
16 #include "chrome/browser/browser_shutdown.h" 16 #include "chrome/browser/browser_shutdown.h"
17 #include "chrome/browser/browser_window.h" 17 #include "chrome/browser/browser_window.h"
18 #include "chrome/browser/browsing_instance.h" 18 #include "chrome/browser/browsing_instance.h"
19 #include "chrome/browser/debugger/devtools_manager.h" 19 #include "chrome/browser/debugger/devtools_manager.h"
20 #include "chrome/browser/dom_ui/dom_ui_factory.h" 20 #include "chrome/browser/dom_ui/dom_ui_factory.h"
21 #include "chrome/browser/extensions/extension_message_service.h" 21 #include "chrome/browser/extensions/extension_message_service.h"
22 #include "chrome/browser/extensions/extension_tabs_module.h" 22 #include "chrome/browser/extensions/extension_tabs_module.h"
23 #include "chrome/browser/extensions/extension_service.h" 23 #include "chrome/browser/extensions/extension_service.h"
24 #include "chrome/browser/file_select_helper.h" 24 #include "chrome/browser/file_select_helper.h"
25 #include "chrome/browser/platform_util.h" 25 #include "chrome/browser/platform_util.h"
26 #include "chrome/browser/prefs/pref_service.h"
27 #include "chrome/browser/profiles/profile.h" 26 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/renderer_host/render_process_host.h" 27 #include "chrome/browser/renderer_host/render_process_host.h"
29 #include "chrome/browser/renderer_host/render_view_host.h" 28 #include "chrome/browser/renderer_host/render_view_host.h"
30 #include "chrome/browser/renderer_host/render_widget_host.h" 29 #include "chrome/browser/renderer_host/render_widget_host.h"
31 #include "chrome/browser/renderer_host/render_widget_host_view.h" 30 #include "chrome/browser/renderer_host/render_widget_host_view.h"
32 #include "chrome/browser/renderer_host/site_instance.h" 31 #include "chrome/browser/renderer_host/site_instance.h"
33 #include "chrome/browser/renderer_preferences_util.h" 32 #include "chrome/browser/renderer_preferences_util.h"
34 #include "chrome/browser/tab_contents/popup_menu_helper_mac.h" 33 #include "chrome/browser/tab_contents/popup_menu_helper_mac.h"
35 #include "chrome/browser/tab_contents/tab_contents.h" 34 #include "chrome/browser/tab_contents/tab_contents.h"
36 #include "chrome/browser/tab_contents/tab_contents_view.h" 35 #include "chrome/browser/tab_contents/tab_contents_view.h"
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 // Extensions hosted in ExternalTabContainer objects may not have 792 // Extensions hosted in ExternalTabContainer objects may not have
794 // an associated browser. 793 // an associated browser.
795 Browser* browser = GetBrowser(); 794 Browser* browser = GetBrowser();
796 if (browser) 795 if (browser)
797 window_id = ExtensionTabUtil::GetWindowId(browser); 796 window_id = ExtensionTabUtil::GetWindowId(browser);
798 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { 797 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) {
799 NOTREACHED(); 798 NOTREACHED();
800 } 799 }
801 return window_id; 800 return window_id;
802 } 801 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/options_ui.cc ('k') | chrome/browser/extensions/extension_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698