summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/automation/automation_provider_mac.mm')
-rw-r--r--chrome/browser/automation/automation_provider_mac.mm19
1 files changed, 0 insertions, 19 deletions
diff --git a/chrome/browser/automation/automation_provider_mac.mm b/chrome/browser/automation/automation_provider_mac.mm
index 29d5af4..99c1bdb 100644
--- a/chrome/browser/automation/automation_provider_mac.mm
+++ b/chrome/browser/automation/automation_provider_mac.mm
@@ -33,22 +33,3 @@ void AutomationProvider::WindowSimulateDrag(int handle,
Send(reply_message);
}
-void AutomationProvider::GetWindowTitle(int handle, string16* text) {
- gfx::NativeWindow window = window_tracker_->GetResource(handle);
- NSString* title = nil;
- if ([[window delegate] isKindOfClass:[TabWindowController class]]) {
- TabWindowController* delegate =
- reinterpret_cast<TabWindowController*>([window delegate]);
- title = [delegate selectedTabTitle];
- } else {
- title = [window title];
- }
- // If we don't yet have a title, use "Untitled".
- if (![title length]) {
- text->assign(l10n_util::GetStringUTF16(
- IDS_BROWSER_WINDOW_MAC_TAB_UNTITLED));
- return;
- }
-
- text->assign(base::SysNSStringToUTF16(title));
-}