| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 6117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6128 bool* success) { | 6128 bool* success) { |
| 6129 *success = false; | 6129 *success = false; |
| 6130 if (tab_tracker_->ContainsHandle(tab_handle)) { | 6130 if (tab_tracker_->ContainsHandle(tab_handle)) { |
| 6131 NavigationController* nav = tab_tracker_->GetResource(tab_handle); | 6131 NavigationController* nav = tab_tracker_->GetResource(tab_handle); |
| 6132 if (!nav) | 6132 if (!nav) |
| 6133 return; | 6133 return; |
| 6134 TabContents* contents = nav->tab_contents(); | 6134 TabContents* contents = nav->tab_contents(); |
| 6135 if (!contents) | 6135 if (!contents) |
| 6136 return; | 6136 return; |
| 6137 RenderViewHost* host = contents->render_view_host(); | 6137 RenderViewHost* host = contents->render_view_host(); |
| 6138 host->Send(new ViewMsg_LoadBlockedPlugins(host->routing_id())); | 6138 host->Send(new ChromeViewMsg_LoadBlockedPlugins(host->routing_id())); |
| 6139 *success = true; | 6139 *success = true; |
| 6140 } | 6140 } |
| 6141 } | 6141 } |
| 6142 | 6142 |
| 6143 void TestingAutomationProvider::ResetToDefaultTheme() { | 6143 void TestingAutomationProvider::ResetToDefaultTheme() { |
| 6144 ThemeServiceFactory::GetForProfile(profile_)->UseDefaultTheme(); | 6144 ThemeServiceFactory::GetForProfile(profile_)->UseDefaultTheme(); |
| 6145 } | 6145 } |
| 6146 | 6146 |
| 6147 void TestingAutomationProvider::WaitForProcessLauncherThreadToGoIdle( | 6147 void TestingAutomationProvider::WaitForProcessLauncherThreadToGoIdle( |
| 6148 IPC::Message* reply_message) { | 6148 IPC::Message* reply_message) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6183 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl); | 6183 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl); |
| 6184 | 6184 |
| 6185 Send(reply_message_); | 6185 Send(reply_message_); |
| 6186 redirect_query_ = 0; | 6186 redirect_query_ = 0; |
| 6187 reply_message_ = NULL; | 6187 reply_message_ = NULL; |
| 6188 } | 6188 } |
| 6189 | 6189 |
| 6190 void TestingAutomationProvider::OnRemoveProvider() { | 6190 void TestingAutomationProvider::OnRemoveProvider() { |
| 6191 AutomationProviderList::GetInstance()->RemoveProvider(this); | 6191 AutomationProviderList::GetInstance()->RemoveProvider(this); |
| 6192 } | 6192 } |
| OLD | NEW |