Index: chrome/browser/extensions/extension_host.cc |
=================================================================== |
--- chrome/browser/extensions/extension_host.cc (revision 72158) |
+++ chrome/browser/extensions/extension_host.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -212,10 +212,14 @@ |
this); |
} |
-Browser* ExtensionHost::GetBrowser() const { |
+const Browser* ExtensionHost::GetBrowser() const { |
return view() ? view()->browser() : NULL; |
} |
+Browser* ExtensionHost::GetBrowser() { |
+ return view() ? view()->browser() : NULL; |
+} |
+ |
gfx::NativeView ExtensionHost::GetNativeViewOfHost() { |
return view() ? view()->native_view() : NULL; |
} |
@@ -791,7 +795,7 @@ |
// If the host is bound to a browser, then extract its window id. |
// Extensions hosted in ExternalTabContainer objects may not have |
// an associated browser. |
- Browser* browser = GetBrowser(); |
+ const Browser* browser = GetBrowser(); |
if (browser) |
window_id = ExtensionTabUtil::GetWindowId(browser); |
} else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { |