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

Unified Diff: chrome/browser/chrome_content_browser_client.h

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: s/base::ResetAndReturn/std::move/ Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.h
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h
index dae52309fff5cdb8c7d5764e7f99a000f0f5cb2f..f1458e550c47ef6cb1af6401aa7d3b848c4b2ab5 100644
--- a/chrome/browser/chrome_content_browser_client.h
+++ b/chrome/browser/chrome_content_browser_client.h
@@ -13,6 +13,7 @@
#include <utility>
#include <vector>
+#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
@@ -65,7 +66,7 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
const content::MainFunctionParams& parameters) override;
void PostAfterStartupTask(const tracked_objects::Location& from_here,
const scoped_refptr<base::TaskRunner>& task_runner,
- const base::Closure& task) override;
+ base::Closure task) override;
bool IsBrowserStartupComplete() override;
std::string GetStoragePartitionIdForSite(
content::BrowserContext* browser_context,

Powered by Google App Engine
This is Rietveld 408576698