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

Side by Side Diff: chrome/browser/printing/print_preview_dialog_controller_browsertest.cc

Issue 2558143002: Remove the enable_task_manager build flag and define. (Closed)
Patch Set: Includes Created 4 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_preview_dialog_controller.h" 5 #include "chrome/browser/printing/print_preview_dialog_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 frame_count = 0; 323 frame_count = 0;
324 preview_dialog->ForEachFrame( 324 preview_dialog->ForEachFrame(
325 base::Bind(&CountFrames, base::Unretained(&frame_count))); 325 base::Bind(&CountFrames, base::Unretained(&frame_count)));
326 } while (frame_count < kExpectedFrameCount); 326 } while (frame_count < kExpectedFrameCount);
327 ASSERT_EQ(kExpectedFrameCount, frame_count); 327 ASSERT_EQ(kExpectedFrameCount, frame_count);
328 328
329 // Make sure all the frames in the dialog has access to the PDF plugin. 329 // Make sure all the frames in the dialog has access to the PDF plugin.
330 preview_dialog->ForEachFrame(base::Bind(&CheckPdfPluginForRenderFrame)); 330 preview_dialog->ForEachFrame(base::Bind(&CheckPdfPluginForRenderFrame));
331 } 331 }
332 332
333 #if defined(ENABLE_TASK_MANAGER) 333 #if !defined(OS_ANDROID)
334 334
335 namespace { 335 namespace {
336 336
337 base::string16 GetExpectedPrefix() { 337 base::string16 GetExpectedPrefix() {
338 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRINT_PREFIX, 338 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRINT_PREFIX,
339 base::string16()); 339 base::string16());
340 } 340 }
341 341
342 const std::vector<task_manager::WebContentsTag*>& GetTrackedTags() { 342 const std::vector<task_manager::WebContentsTag*>& GetTrackedTags() {
343 return task_manager::WebContentsTagsManager::GetInstance()->tracked_tags(); 343 return task_manager::WebContentsTagsManager::GetInstance()->tracked_tags();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 PrintPreviewPdfAccessibility) { 389 PrintPreviewPdfAccessibility) {
390 content::BrowserAccessibilityState::GetInstance()->EnableAccessibility(); 390 content::BrowserAccessibilityState::GetInstance()->EnableAccessibility();
391 ui_test_utils::NavigateToURL(browser(), GURL("data:text/html,HelloWorld")); 391 ui_test_utils::NavigateToURL(browser(), GURL("data:text/html,HelloWorld"));
392 PrintPreview(); 392 PrintPreview();
393 WebContents* preview_dialog = GetPrintPreviewDialog(); 393 WebContents* preview_dialog = GetPrintPreviewDialog();
394 WaitForAccessibilityTreeToContainNodeWithName(preview_dialog, "HelloWorld"); 394 WaitForAccessibilityTreeToContainNodeWithName(preview_dialog, "HelloWorld");
395 } 395 }
396 396
397 } // namespace 397 } // namespace
398 398
399 #endif // defined(ENABLE_TASK_MANAGER) 399 #endif // !defined(OS_ANDROID)
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/task_manager/web_contents_tags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698