| Index: chrome/browser/automation/automation_provider_win.cc
|
| ===================================================================
|
| --- chrome/browser/automation/automation_provider_win.cc (revision 40221)
|
| +++ chrome/browser/automation/automation_provider_win.cc (working copy)
|
| @@ -516,3 +516,11 @@
|
| "AutomationProvider::OnBrowserMoved called with invalid tab handle.";
|
| }
|
| }
|
| +
|
| +void AutomationProvider::GetWindowTitle(int handle, string16* text) {
|
| + gfx::NativeWindow window = window_tracker_->GetResource(handle);
|
| + std::wstring result;
|
| + int length = ::GetWindowTextLength(window) + 1;
|
| + ::GetWindowText(window, WriteInto(&result, length), length);
|
| + text->assign(WideToUTF16(result));
|
| +}
|
|
|