summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_accessibility.cc
diff options
context:
space:
mode:
authorklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-09 00:03:18 +0000
committerklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-09 00:03:18 +0000
commitbdf647955f0bed7bd2fd3b7a9133ff46e9604687 (patch)
tree906f28e577382543a9a20fe913b5eec81af83e84 /chrome/browser/browser_accessibility.cc
parent0d13416b940db94edc3d0a275f41abfe15b36a84 (diff)
downloadchromium_src-bdf647955f0bed7bd2fd3b7a9133ff46e9604687.zip
chromium_src-bdf647955f0bed7bd2fd3b7a9133ff46e9604687.tar.gz
chromium_src-bdf647955f0bed7bd2fd3b7a9133ff46e9604687.tar.bz2
Fixes crash in BrowserAccessibilityManager destructor (see CPBrowsingContextManager for example of this type of fix).
Also fixes small style issue, to be consistent with other Singleton implementations. Review URL: http://codereview.chromium.org/6282 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_accessibility.cc')
-rw-r--r--chrome/browser/browser_accessibility.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/browser_accessibility.cc b/chrome/browser/browser_accessibility.cc
index bb6b8d2..fea5bf2 100644
--- a/chrome/browser/browser_accessibility.cc
+++ b/chrome/browser/browser_accessibility.cc
@@ -533,23 +533,24 @@ STDMETHODIMP BrowserAccessibility::put_accValue(VARIANT var_id, BSTR put_val) {
STDMETHODIMP BrowserAccessibility::CreateInstance(REFIID iid,
int iaccessible_id,
void** interface_ptr) {
- return BrowserAccessibilityManager::Instance()->CreateAccessibilityInstance(
- iid, iaccessible_id, instance_id(), interface_ptr);
+ return BrowserAccessibilityManager::GetInstance()->
+ CreateAccessibilityInstance(iid, iaccessible_id, instance_id(),
+ interface_ptr);
}
bool BrowserAccessibility::RequestAccessibilityInfo(int iaccessible_func_id,
VARIANT var_id, LONG input1,
LONG input2) {
- return BrowserAccessibilityManager::Instance()->RequestAccessibilityInfo(
+ return BrowserAccessibilityManager::GetInstance()->RequestAccessibilityInfo(
iaccessible_id(), instance_id(), iaccessible_func_id, var_id, input1,
input2);
}
ViewHostMsg_Accessibility_Out_Params BrowserAccessibility::response() {
- return BrowserAccessibilityManager::Instance()->response();
+ return BrowserAccessibilityManager::GetInstance()->response();
}
HWND BrowserAccessibility::parent_hwnd() {
- return BrowserAccessibilityManager::Instance()->parent_hwnd(instance_id());
+ return BrowserAccessibilityManager::GetInstance()->parent_hwnd(instance_id());
}