diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-26 01:58:49 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-26 01:58:49 +0000 |
commit | c248f5553a496961bec048ac91459a3f28b11db8 (patch) | |
tree | 1c0e17ac415037da34b7179bbbd3666b878e2ac2 /chrome/browser/automation | |
parent | bedfa022dd66db4c2f1eaeef2718c22a5c400c63 (diff) | |
download | chromium_src-c248f5553a496961bec048ac91459a3f28b11db8.zip chromium_src-c248f5553a496961bec048ac91459a3f28b11db8.tar.gz chromium_src-c248f5553a496961bec048ac91459a3f28b11db8.tar.bz2 |
Cleanup: Rename print preview tab to print preview dialog in various classes.
BUG=163671
Review URL: https://chromiumcodereview.appspot.com/12047128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/automation_util.cc | 2 | ||||
-rw-r--r-- | chrome/browser/automation/testing_automation_provider.cc | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/automation/automation_util.cc b/chrome/browser/automation/automation_util.cc index 1b7cd3c..288a9d9 100644 --- a/chrome/browser/automation/automation_util.cc +++ b/chrome/browser/automation/automation_util.cc @@ -526,7 +526,7 @@ bool GetTabForId(const AutomationId& id, WebContents** tab) { } if (preview_controller) { WebContents* print_preview_contents = - preview_controller->GetPrintPreviewForTab(web_contents); + preview_controller->GetPrintPreviewForContents(web_contents); if (print_preview_contents) { SessionTabHelper* preview_session_tab_helper = SessionTabHelper::FromWebContents(print_preview_contents); diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 767ff62..2a15219 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -5643,17 +5643,17 @@ void TestingAutomationProvider::GetViews( for (; browser_iter != BrowserList::end(); ++browser_iter) { Browser* browser = *browser_iter; for (int i = 0; i < browser->tab_strip_model()->count(); ++i) { - WebContents* tab = browser->tab_strip_model()->GetWebContentsAt(i); + WebContents* contents = browser->tab_strip_model()->GetWebContentsAt(i); DictionaryValue* dict = new DictionaryValue(); - AutomationId id = automation_util::GetIdForTab(tab); + AutomationId id = automation_util::GetIdForTab(contents); dict->Set("auto_id", id.ToValue()); view_list->Append(dict); if (preview_controller) { - WebContents* preview_tab = - preview_controller->GetPrintPreviewForTab(tab); - if (preview_tab) { + WebContents* preview_dialog = + preview_controller->GetPrintPreviewForContents(contents); + if (preview_dialog) { DictionaryValue* dict = new DictionaryValue(); - AutomationId id = automation_util::GetIdForTab(preview_tab); + AutomationId id = automation_util::GetIdForTab(preview_dialog); dict->Set("auto_id", id.ToValue()); view_list->Append(dict); } |