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

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

Issue 8771065: Remove unused view_type determination code from automation_util.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | no next file » | 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 7d70826381259bc75ddd03267a6a1ac610f554b0..07b6909abce9391d367508bfdfaa9d37225f27f6 100644
--- a/chrome/browser/automation/automation_util.cc
+++ b/chrome/browser/automation/automation_util.cc
@@ -462,21 +462,6 @@ bool GetExtensionRenderViewForId(
const AutomationId& id,
Profile* profile,
RenderViewHost** rvh) {
- content::ViewType view_type;
- switch (id.type()) {
- case AutomationId::kTypeExtensionPopup:
- view_type = chrome::VIEW_TYPE_EXTENSION_POPUP;
- break;
- case AutomationId::kTypeExtensionBgPage:
- view_type = chrome::VIEW_TYPE_EXTENSION_BACKGROUND_PAGE;
- break;
- case AutomationId::kTypeExtensionInfobar:
- view_type = chrome::VIEW_TYPE_EXTENSION_INFOBAR;
- break;
- default:
- return false;
- }
-
ExtensionProcessManager* extension_mgr =
profile->GetExtensionProcessManager();
ExtensionProcessManager::const_iterator iter;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698