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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.h

Issue 2315303002: Remove calls to IsRunningSequenceOnCurrentThread() in wallpaper API. (Closed)
Patch Set: Leaky LazyInstance Created 4 years, 3 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/chromeos/extensions/wallpaper_private_api.h
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.h b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
index 9e856d0697e0da3fe9aa00d6380efc5647361bd7..9d0cc905c80c1e91a4e8d7e0aeed9937c583d887 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.h
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
@@ -8,7 +8,6 @@
#include <string>
#include <vector>
-#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/chromeos/extensions/wallpaper_function_base.h"
#include "chrome/common/extensions/api/wallpaper_private.h"
#include "components/signin/core/account_id/account_id.h"
@@ -81,10 +80,6 @@ class WallpaperPrivateSetWallpaperIfExistsFunction
// User id of the active user when this api is been called.
AccountId account_id_ = EmptyAccountId();
-
- // Sequence token associated with wallpaper operations. Shared with
- // WallpaperManager.
- base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateSetWallpaperFunction : public WallpaperFunctionBase {
@@ -118,10 +113,6 @@ class WallpaperPrivateSetWallpaperFunction : public WallpaperFunctionBase {
// User account id of the active user when this api is been called.
AccountId account_id_ = EmptyAccountId();
-
- // Sequence token associated with wallpaper operations. Shared with
- // WallpaperManager.
- base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateResetWallpaperFunction
@@ -173,10 +164,6 @@ class WallpaperPrivateSetCustomWallpaperFunction
// User id hash of the logged in user.
wallpaper::WallpaperFilesId wallpaper_files_id_;
-
- // Sequence token associated with wallpaper operations. Shared with
- // WallpaperManager.
- base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateSetCustomWallpaperLayoutFunction
@@ -247,10 +234,6 @@ class WallpaperPrivateGetThumbnailFunction : public AsyncExtensionFunction {
// Gets thumbnail from |path|. If |path| does not exist, call FileNotLoaded().
void Get(const base::FilePath& path);
-
- // Sequence token associated with wallpaper operations. Shared with
- // WallpaperManager.
- base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateSaveThumbnailFunction : public AsyncExtensionFunction {
@@ -275,10 +258,6 @@ class WallpaperPrivateSaveThumbnailFunction : public AsyncExtensionFunction {
// Saves thumbnail to thumbnail directory as |file_name|.
void Save(const std::vector<char>& data, const std::string& file_name);
-
- // Sequence token associated with wallpaper operations. Shared with
- // WallpaperManager.
- base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateGetOfflineWallpaperListFunction
@@ -301,10 +280,6 @@ class WallpaperPrivateGetOfflineWallpaperListFunction
// Sends the list of files to extension api caller. If no files or no
// directory, sends empty list.
void OnComplete(const std::vector<std::string>& file_list);
-
- // Sequence token associated with wallpaper operations. Shared with
- // WallpaperManager.
- base::SequencedWorkerPool::SequenceToken sequence_token_;
};
// The wallpaper UMA is recorded when a new wallpaper is set, either by the

Powered by Google App Engine
This is Rietveld 408576698