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

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

Issue 10854026: Added webdriver support for App v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a comment. Created 8 years, 4 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 | « no previous file | chrome/common/automation_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_util.cc
diff --git a/chrome/browser/automation/automation_util.cc b/chrome/browser/automation/automation_util.cc
index 233799307f9ab9eac4902bae4cdaf2614f722904..c92735901b093b1e2c8b5580e74368839e8f22ae 100644
--- a/chrome/browser/automation/automation_util.cc
+++ b/chrome/browser/automation/automation_util.cc
@@ -428,6 +428,9 @@ AutomationId GetIdForExtensionView(
case chrome::VIEW_TYPE_EXTENSION_INFOBAR:
type = AutomationId::kTypeExtensionInfobar;
break;
+ case chrome::VIEW_TYPE_APP_SHELL:
+ type = AutomationId::kTypeAppShell;
+ break;
default:
type = AutomationId::kTypeInvalid;
break;
@@ -517,6 +520,7 @@ bool GetRenderViewForId(
case AutomationId::kTypeExtensionPopup:
case AutomationId::kTypeExtensionBgPage:
case AutomationId::kTypeExtensionInfobar:
+ case AutomationId::kTypeAppShell:
if (!GetExtensionRenderViewForId(id, profile, rvh))
return false;
break;
@@ -548,7 +552,8 @@ bool DoesObjectWithIdExist(const AutomationId& id, Profile* profile) {
}
case AutomationId::kTypeExtensionPopup:
case AutomationId::kTypeExtensionBgPage:
- case AutomationId::kTypeExtensionInfobar: {
+ case AutomationId::kTypeExtensionInfobar:
+ case AutomationId::kTypeAppShell: {
RenderViewHost* rvh;
return GetExtensionRenderViewForId(id, profile, &rvh);
}
« no previous file with comments | « no previous file | chrome/common/automation_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698