| OLD | NEW |
| 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/keyboard_codes.h" | 9 #include "app/keyboard_codes.h" |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "base/histogram.h" |
| 12 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 13 #include "base/singleton.h" | 14 #include "base/singleton.h" |
| 14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 15 #include "chrome/browser/browser.h" | 16 #include "chrome/browser/browser.h" |
| 16 #include "chrome/browser/browser_list.h" | 17 #include "chrome/browser/browser_list.h" |
| 17 #include "chrome/browser/browser_shutdown.h" | 18 #include "chrome/browser/browser_shutdown.h" |
| 18 #include "chrome/browser/browser_window.h" | 19 #include "chrome/browser/browser_window.h" |
| 19 #include "chrome/browser/browsing_instance.h" | 20 #include "chrome/browser/browsing_instance.h" |
| 20 #include "chrome/browser/debugger/devtools_manager.h" | 21 #include "chrome/browser/debugger/devtools_manager.h" |
| 21 #include "chrome/browser/dom_ui/dom_ui_factory.h" | 22 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 // Extensions hosted in ExternalTabContainer objects may not have | 718 // Extensions hosted in ExternalTabContainer objects may not have |
| 718 // an associated browser. | 719 // an associated browser. |
| 719 Browser* browser = GetBrowser(); | 720 Browser* browser = GetBrowser(); |
| 720 if (browser) | 721 if (browser) |
| 721 window_id = ExtensionTabUtil::GetWindowId(browser); | 722 window_id = ExtensionTabUtil::GetWindowId(browser); |
| 722 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { | 723 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { |
| 723 NOTREACHED(); | 724 NOTREACHED(); |
| 724 } | 725 } |
| 725 return window_id; | 726 return window_id; |
| 726 } | 727 } |
| OLD | NEW |