Index: chrome/test/webdriver/webdriver_automation.cc |
diff --git a/chrome/test/webdriver/webdriver_automation.cc b/chrome/test/webdriver/webdriver_automation.cc |
index 2715293d38fbc65b0fd84bcdac2877c1c6947051..807c7d8706b0023d3895e0a5799922e4a25e1867 100644 |
--- a/chrome/test/webdriver/webdriver_automation.cc |
+++ b/chrome/test/webdriver/webdriver_automation.cc |
@@ -792,12 +792,12 @@ void Automation::NavigateToURLAsync(const WebViewId& view_id, |
} else { |
scoped_refptr<BrowserProxy> browser = |
automation()->GetBrowserWindow(view_locator.browser_index()); |
- if (!browser) { |
+ if (!browser.get()) { |
*error = new Error(kUnknownError, "Couldn't obtain browser proxy"); |
return; |
} |
scoped_refptr<TabProxy> tab = browser->GetTab(view_locator.tab_index()); |
- if (!tab) { |
+ if (!tab.get()) { |
*error = new Error(kUnknownError, "Couldn't obtain tab proxy"); |
return; |
} |