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

Unified Diff: chrome/browser/browser_accessibility.cc

Issue 200045: Use Scoped[Bstr,ComPtr,Variant] instead of their ATL equivalents to reduce de... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browser_accessibility.cc
===================================================================
--- chrome/browser/browser_accessibility.cc (revision 25862)
+++ chrome/browser/browser_accessibility.cc (working copy)
@@ -254,7 +254,7 @@
return S_FALSE;
}
- *def_action = CComBSTR(response().output_string.c_str()).Detach();
+ *def_action = SysAllocString(response().output_string.c_str());
DCHECK(*def_action);
return S_OK;
@@ -280,7 +280,7 @@
return S_FALSE;
}
- *desc = CComBSTR(response().output_string.c_str()).Detach();
+ *desc = SysAllocString(response().output_string.c_str());
DCHECK(*desc);
return S_OK;
@@ -342,7 +342,7 @@
return S_FALSE;
}
- *help = CComBSTR(response().output_string.c_str()).Detach();
+ *help = SysAllocString(response().output_string.c_str());
DCHECK(*help);
return S_OK;
@@ -368,7 +368,7 @@
return S_FALSE;
}
- *acc_key = CComBSTR(response().output_string.c_str()).Detach();
+ *acc_key = SysAllocString(response().output_string.c_str());
DCHECK(*acc_key);
return S_OK;
@@ -393,7 +393,7 @@
return S_FALSE;
}
- *name = CComBSTR(response().output_string.c_str()).Detach();
+ *name = SysAllocString(response().output_string.c_str());
DCHECK(*name);
return S_OK;
@@ -504,7 +504,7 @@
return S_FALSE;
}
- *value = CComBSTR(response().output_string.c_str()).Detach();
+ *value = SysAllocString(response().output_string.c_str());
DCHECK(*value);
return S_OK;

Powered by Google App Engine
This is Rietveld 408576698