Index: chrome_frame/test/chrome_frame_test_utils.cc |
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc |
index 6b03bf43ee4a8d322a6cfe86738614e0eb97eb64..8b041a6ce559694302be4f91706af4ccd0a8d933 100644 |
--- a/chrome_frame/test/chrome_frame_test_utils.cc |
+++ b/chrome_frame/test/chrome_frame_test_utils.cc |
@@ -9,6 +9,7 @@ |
#include <iepmapi.h> |
#include <sddl.h> |
+#include "base/command_line.h" |
#include "base/file_version_info.h" |
#include "base/file_util.h" |
#include "base/message_loop.h" |
@@ -19,6 +20,7 @@ |
#include "base/scoped_bstr_win.h" |
#include "base/scoped_handle.h" |
#include "base/scoped_comptr_win.h" |
+#include "base/string_util.h" |
#include "base/utf_string_conversions.h" |
#include "base/win_util.h" |
#include "chrome/common/chrome_switches.h" |
@@ -958,6 +960,11 @@ void DelaySendExtendedKeysEnter(TimedMsgLoop* loop, int delay, char c, |
simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), next_delay); |
} |
+CloseIeAtEndOfScope::~CloseIeAtEndOfScope() { |
+ int closed = CloseAllIEWindows(); |
+ DLOG_IF(ERROR, closed != 0) << "Closed " << closed << " windows forcefully"; |
+} |
+ |
base::ProcessHandle StartCrashService() { |
FilePath exe_dir; |
if (!PathService::Get(base::DIR_EXE, &exe_dir)) { |