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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10810062: Moving common code into OmniboxView from OmniboxView* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename GetTextLength to allow reasoning about win version" Created 8 years, 5 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
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index deb355f2346627fdb8161c9d487d4e1cf68d7397..c3f27d3064c723e89b9f500f03f88e7c831e1dd2 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -3131,7 +3131,7 @@ void TestingAutomationProvider::GetOmniboxInfo(Browser* browser,
return;
}
const OmniboxView* omnibox_view = loc_bar->GetLocationEntry();
- const OmniboxEditModel* model = omnibox_view->model();
+ const OmniboxEditModel* model = omnibox_view->GetModel();
// Fill up matches.
ListValue* matches = new ListValue;
@@ -3179,7 +3179,7 @@ void TestingAutomationProvider::SetOmniboxText(Browser* browser,
return;
}
OmniboxView* omnibox_view = loc_bar->GetLocationEntry();
- omnibox_view->model()->OnSetFocus(false);
+ omnibox_view->GetModel()->OnSetFocus(false);
omnibox_view->SetUserText(text);
reply.SendSuccess(NULL);
}
@@ -3203,7 +3203,7 @@ void TestingAutomationProvider::OmniboxMovePopupSelection(
reply.SendError("The specified browser does not have a location bar.");
return;
}
- OmniboxEditModel* model = loc_bar->GetLocationEntry()->model();
+ OmniboxEditModel* model = loc_bar->GetLocationEntry()->GetModel();
model->OnUpOrDownKeyPressed(count);
reply.SendSuccess(NULL);
}

Powered by Google App Engine
This is Rietveld 408576698