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

Unified Diff: extensions/browser/api/execute_code_function.h

Issue 2978843002: [Extensions][Task Scheduler] Migrate ExecuteCodeFunction (Closed)
Patch Set: Created 3 years, 5 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: extensions/browser/api/execute_code_function.h
diff --git a/extensions/browser/api/execute_code_function.h b/extensions/browser/api/execute_code_function.h
index 13df3dd544b41588db6843e5ca9dffbca7f72eb8..5401799bd84cb8e739343b1a7b1f1e3292e26cb6 100644
--- a/extensions/browser/api/execute_code_function.h
+++ b/extensions/browser/api/execute_code_function.h
@@ -84,7 +84,7 @@ class ExecuteCodeFunction : public AsyncExtensionFunction {
// localizes |data|.
// Localization depends on whether |might_require_localization| was specified.
// Only CSS file content needs to be localized.
- void GetFileURLAndMaybeLocalizeOnFileThread(
+ void GetFileURLAndMaybeLocalizeOnBackgroundThread(
karandeepb 2017/07/13 01:47:48 Why "Background"? Maybe GetFileURLAndMaybeLocali
Devlin 2017/07/13 18:35:09 "Background" is just the idea of a background thre
karandeepb 2017/07/13 20:18:48 Background seems to tell me that this is run on a
Devlin 2017/07/14 00:52:03 Done.
const std::string& extension_id,
const base::FilePath& extension_path,
const std::string& extension_default_locale,
@@ -93,9 +93,10 @@ class ExecuteCodeFunction : public AsyncExtensionFunction {
// Retrieves the file url for the given |extension_path| and optionally
// localizes |data|.
- // Similar to GetFileURLAndMaybeLocalizeOnFileThread, but only applies to
- // component extension resource.
- void GetFileURLAndLocalizeComponentResourceOnFileThread(
+ // Similar to GetFileURLAndMaybeLocalizeOnBackgroundThread, but only applies
+ // to component extension resource.
+ std::unique_ptr<std::string>
+ GetFileURLAndLocalizeComponentResourceOnBackgroundThread(
std::unique_ptr<std::string> data,
const std::string& extension_id,
const base::FilePath& extension_path,
« no previous file with comments | « no previous file | extensions/browser/api/execute_code_function.cc » ('j') | extensions/browser/api/execute_code_function.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698