| 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 3626478f859e0c618041beb16aedbb454e4bde55..a31db4b677e31a59377039f471438d899f7cef36 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -2585,6 +2585,22 @@ void TestingAutomationProvider::GetBrowserInfo(
|
| browser_item->SetInteger("selected_tab", browser->active_index());
|
| browser_item->SetBoolean("incognito",
|
| browser->profile()->IsOffTheRecord());
|
| + std::string type;
|
| + switch (browser->type()) {
|
| + case Browser::TYPE_TABBED:
|
| + type = "tabbed";
|
| + break;
|
| + case Browser::TYPE_POPUP:
|
| + type = "popup";
|
| + break;
|
| + case Browser::TYPE_PANEL:
|
| + type = "panel";
|
| + break;
|
| + default:
|
| + type = "unknown";
|
| + break;
|
| + }
|
| + browser_item->SetString("type", type);
|
| // For each window, add info about all tabs in a list of dictionaries,
|
| // one dictionary item per tab.
|
| ListValue* tabs = new ListValue;
|
|
|