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

Unified Diff: chrome/test/automation/browser_proxy.cc

Issue 7104029: Automation: fix chrome/browser dependency on chrome/test headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « chrome/test/automation/browser_proxy.h ('k') | chrome/test/automation/tab_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/browser_proxy.cc
===================================================================
--- chrome/test/automation/browser_proxy.cc (revision 87598)
+++ chrome/test/automation/browser_proxy.cc (working copy)
@@ -13,7 +13,6 @@
#include "base/time.h"
#include "chrome/common/automation_constants.h"
#include "chrome/common/automation_messages.h"
-#include "chrome/test/automation/autocomplete_edit_proxy.h"
#include "chrome/test/automation/automation_proxy.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrome/test/automation/window_proxy.h"
@@ -22,7 +21,6 @@
using base::TimeDelta;
using base::TimeTicks;
-
bool BrowserProxy::ActivateTab(int tab_index) {
if (!is_valid())
return false;
@@ -510,33 +508,6 @@
return result;
}
-scoped_refptr<AutocompleteEditProxy> BrowserProxy::GetAutocompleteEdit() {
- if (!is_valid())
- return NULL;
-
- bool handle_ok = false;
- int autocomplete_edit_handle = 0;
-
- sender_->Send(new AutomationMsg_AutocompleteEditForBrowser(
- handle_, &handle_ok, &autocomplete_edit_handle));
-
- if (!handle_ok)
- return NULL;
-
- AutocompleteEditProxy* p = static_cast<AutocompleteEditProxy*>(
- tracker_->GetResource(autocomplete_edit_handle));
-
- if (!p) {
- p = new AutocompleteEditProxy(sender_, tracker_, autocomplete_edit_handle);
- p->AddRef();
- }
-
- // Since there is no scoped_refptr::attach.
- scoped_refptr<AutocompleteEditProxy> result;
- result.swap(&p);
- return result;
-}
-
bool BrowserProxy::IsFullscreen(bool* is_fullscreen) {
DCHECK(is_fullscreen);
« no previous file with comments | « chrome/test/automation/browser_proxy.h ('k') | chrome/test/automation/tab_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698