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

Side by Side Diff: chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc

Issue 2858073002: Use constexpr TaskTraits constructor in chrome. (Closed)
Patch Set: Created 3 years, 7 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
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/ui/views/tabs/browser_tab_strip_controller.h" 5 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/metrics/user_metrics.h" 9 #include "base/metrics/user_metrics.h"
10 #include "base/task_scheduler/post_task.h" 10 #include "base/task_scheduler/post_task.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 ImmersiveModeController::ANIMATE_REVEAL_NO)); 407 ImmersiveModeController::ANIMATE_REVEAL_NO));
408 } 408 }
409 } 409 }
410 410
411 void BrowserTabStripController::OnStoppedDraggingTabs() { 411 void BrowserTabStripController::OnStoppedDraggingTabs() {
412 immersive_reveal_lock_.reset(); 412 immersive_reveal_lock_.reset();
413 } 413 }
414 414
415 void BrowserTabStripController::CheckFileSupported(const GURL& url) { 415 void BrowserTabStripController::CheckFileSupported(const GURL& url) {
416 base::PostTaskWithTraitsAndReplyWithResult( 416 base::PostTaskWithTraitsAndReplyWithResult(
417 FROM_HERE, base::TaskTraits().MayBlock().WithPriority( 417 FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
418 base::TaskPriority::USER_VISIBLE),
419 base::Bind(&FindURLMimeType, url), 418 base::Bind(&FindURLMimeType, url),
420 base::Bind(&BrowserTabStripController::OnFindURLMimeTypeCompleted, 419 base::Bind(&BrowserTabStripController::OnFindURLMimeTypeCompleted,
421 weak_ptr_factory_.GetWeakPtr(), url)); 420 weak_ptr_factory_.GetWeakPtr(), url));
422 } 421 }
423 422
424 SkColor BrowserTabStripController::GetToolbarTopSeparatorColor() const { 423 SkColor BrowserTabStripController::GetToolbarTopSeparatorColor() const {
425 return browser_view_->frame()->GetFrameView()->GetToolbarTopSeparatorColor(); 424 return browser_view_->frame()->GetFrameView()->GetToolbarTopSeparatorColor();
426 } 425 }
427 426
428 base::string16 BrowserTabStripController::GetAccessibleTabName( 427 base::string16 BrowserTabStripController::GetAccessibleTabName(
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 content::WebPluginInfo plugin; 581 content::WebPluginInfo plugin;
583 tabstrip_->FileSupported( 582 tabstrip_->FileSupported(
584 url, 583 url,
585 mime_type.empty() || mime_util::IsSupportedMimeType(mime_type) || 584 mime_type.empty() || mime_util::IsSupportedMimeType(mime_type) ||
586 content::PluginService::GetInstance()->GetPluginInfo( 585 content::PluginService::GetInstance()->GetPluginInfo(
587 -1, // process ID 586 -1, // process ID
588 MSG_ROUTING_NONE, // routing ID 587 MSG_ROUTING_NONE, // routing ID
589 model_->profile()->GetResourceContext(), url, url::Origin(), 588 model_->profile()->GetResourceContext(), url, url::Origin(),
590 mime_type, false, NULL, &plugin, NULL)); 589 mime_type, false, NULL, &plugin, NULL));
591 } 590 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/outdated_upgrade_bubble_view.cc ('k') | chrome/browser/ui/webui/about_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698