| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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/printing/print_dialog_cloud.h" |    5 #include "chrome/browser/printing/print_dialog_cloud.h" | 
|    6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" |    6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" | 
|    7  |    7  | 
|    8 #include <functional> |    8 #include <functional> | 
|    9  |    9  | 
|   10 #include "base/file_path.h" |   10 #include "base/file_path.h" | 
|   11 #include "base/file_util.h" |   11 #include "base/file_util.h" | 
|   12 #include "base/path_service.h" |   12 #include "base/path_service.h" | 
|   13 #include "base/singleton.h" |   13 #include "base/singleton.h" | 
|   14 #include "base/thread_restrictions.h" |   14 #include "base/threading/thread_restrictions.h" | 
|   15 #include "base/values.h" |   15 #include "base/values.h" | 
|   16 #include "chrome/browser/browser_list.h" |   16 #include "chrome/browser/browser_list.h" | 
|   17 #include "chrome/browser/browser_thread.h" |   17 #include "chrome/browser/browser_thread.h" | 
|   18 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |   18 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 
|   19 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" |   19 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" | 
|   20 #include "chrome/browser/renderer_host/render_view_host.h" |   20 #include "chrome/browser/renderer_host/render_view_host.h" | 
|   21 #include "chrome/browser/tab_contents/tab_contents.h" |   21 #include "chrome/browser/tab_contents/tab_contents.h" | 
|   22 #include "chrome/common/chrome_paths.h" |   22 #include "chrome/common/chrome_paths.h" | 
|   23 #include "chrome/common/url_constants.h" |   23 #include "chrome/common/url_constants.h" | 
|   24 #include "chrome/test/in_process_browser_test.h" |   24 #include "chrome/test/in_process_browser_test.h" | 
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  248  |  248  | 
|  249   std::wstring window_print(L"window.print()"); |  249   std::wstring window_print(L"window.print()"); | 
|  250   browser()->GetSelectedTabContents()->render_view_host()-> |  250   browser()->GetSelectedTabContents()->render_view_host()-> | 
|  251       ExecuteJavascriptInWebFrame(std::wstring(), window_print); |  251       ExecuteJavascriptInWebFrame(std::wstring(), window_print); | 
|  252  |  252  | 
|  253   ui_test_utils::RunMessageLoop(); |  253   ui_test_utils::RunMessageLoop(); | 
|  254  |  254  | 
|  255   ASSERT_TRUE(TestController::GetInstance()->result()); |  255   ASSERT_TRUE(TestController::GetInstance()->result()); | 
|  256 } |  256 } | 
|  257 #endif |  257 #endif | 
| OLD | NEW |