| Index: chrome/test/automation/browser_proxy.cc
|
| ===================================================================
|
| --- chrome/test/automation/browser_proxy.cc (revision 17483)
|
| +++ chrome/test/automation/browser_proxy.cc (working copy)
|
| @@ -327,6 +327,27 @@
|
| 0, handle_, is_visible, is_animating));
|
| }
|
|
|
| +bool BrowserProxy::IsShelfVisible(bool* is_visible) {
|
| + if (!is_valid())
|
| + return false;
|
| +
|
| + if (!is_visible) {
|
| + NOTREACHED();
|
| + return false;
|
| + }
|
| +
|
| + return sender_->Send(new AutomationMsg_ShelfVisibility(0, handle_,
|
| + is_visible));
|
| +}
|
| +
|
| +bool BrowserProxy::SetShelfVisible(bool is_visible) {
|
| + if (!is_valid())
|
| + return false;
|
| +
|
| + return sender_->Send(new AutomationMsg_SetShelfVisibility(0, handle_,
|
| + is_visible));
|
| +}
|
| +
|
| bool BrowserProxy::SetIntPreference(const std::wstring& name, int value) {
|
| if (!is_valid())
|
| return false;
|
| @@ -414,7 +435,7 @@
|
|
|
| AutocompleteEditProxy* p = static_cast<AutocompleteEditProxy*>(
|
| tracker_->GetResource(autocomplete_edit_handle));
|
| -
|
| +
|
| if (!p) {
|
| p = new AutocompleteEditProxy(sender_, tracker_, autocomplete_edit_handle);
|
| p->AddRef();
|
|
|