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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 14175017: Remove one-click signin inforbar, since its now replaced with the gaia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/automation/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 // Each infobar may have different properties depending on the type. 2098 // Each infobar may have different properties depending on the type.
2099 ListValue* infobars = new ListValue; 2099 ListValue* infobars = new ListValue;
2100 InfoBarService* infobar_service = InfoBarService::FromWebContents(wc); 2100 InfoBarService* infobar_service = InfoBarService::FromWebContents(wc);
2101 for (size_t i = 0; i < infobar_service->infobar_count(); ++i) { 2101 for (size_t i = 0; i < infobar_service->infobar_count(); ++i) {
2102 DictionaryValue* infobar_item = new DictionaryValue; 2102 DictionaryValue* infobar_item = new DictionaryValue;
2103 InfoBarDelegate* infobar = infobar_service->infobar_at(i); 2103 InfoBarDelegate* infobar = infobar_service->infobar_at(i);
2104 switch (infobar->GetInfoBarAutomationType()) { 2104 switch (infobar->GetInfoBarAutomationType()) {
2105 case InfoBarDelegate::CONFIRM_INFOBAR: 2105 case InfoBarDelegate::CONFIRM_INFOBAR:
2106 infobar_item->SetString("type", "confirm_infobar"); 2106 infobar_item->SetString("type", "confirm_infobar");
2107 break; 2107 break;
2108 case InfoBarDelegate::ONE_CLICK_LOGIN_INFOBAR:
2109 infobar_item->SetString("type", "oneclicklogin_infobar");
2110 break;
2111 case InfoBarDelegate::PASSWORD_INFOBAR: 2108 case InfoBarDelegate::PASSWORD_INFOBAR:
2112 infobar_item->SetString("type", "password_infobar"); 2109 infobar_item->SetString("type", "password_infobar");
2113 break; 2110 break;
2114 case InfoBarDelegate::RPH_INFOBAR: 2111 case InfoBarDelegate::RPH_INFOBAR:
2115 infobar_item->SetString("type", "rph_infobar"); 2112 infobar_item->SetString("type", "rph_infobar");
2116 break; 2113 break;
2117 case InfoBarDelegate::UNKNOWN_INFOBAR: 2114 case InfoBarDelegate::UNKNOWN_INFOBAR:
2118 infobar_item->SetString("type", "unknown_infobar"); 2115 infobar_item->SetString("type", "unknown_infobar");
2119 break; 2116 break;
2120 } 2117 }
(...skipping 3821 matching lines...) Expand 10 before | Expand all | Expand 10 after
5942 if (g_browser_process) 5939 if (g_browser_process)
5943 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 5940 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
5944 } 5941 }
5945 5942
5946 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, 5943 void TestingAutomationProvider::EnsureTabSelected(Browser* browser,
5947 WebContents* tab) { 5944 WebContents* tab) {
5948 TabStripModel* tab_strip = browser->tab_strip_model(); 5945 TabStripModel* tab_strip = browser->tab_strip_model();
5949 if (tab_strip->GetActiveWebContents() != tab) 5946 if (tab_strip->GetActiveWebContents() != tab)
5950 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); 5947 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true);
5951 } 5948 }
OLDNEW
« no previous file with comments | « chrome/app/theme/touch_100_percent/infobar_sync.png ('k') | chrome/browser/chrome_browser_field_trials_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698