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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 10836228: Convert multiple boolean params to mask in getExtensionByIdInternal. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: comments and rebase Created 8 years, 4 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/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index c326490a1a8cb6f32e3d039fe3a0dcb5e02b4897..448b62f1eb8ad62ebbddd8bd1e9b6d06e52aa65c 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -669,13 +669,18 @@ class ExtensionService
const extensions::ExtensionSyncData& extension_sync_data,
syncer::ModelType type);
+ enum IncludeFlag {
+ INCLUDE_NONE = 0,
+ INCLUDE_ENABLED = 1 << 0,
+ INCLUDE_DISABLED = 1 << 1,
+ INCLUDE_TERMINATED = 1 << 2
+ };
+
// Look up an extension by ID, optionally including either or both of enabled
// and disabled extensions.
const extensions::Extension* GetExtensionByIdInternal(
const std::string& id,
- bool include_enabled,
- bool include_disabled,
- bool include_terminated) const;
+ int include_mask) const;
// Adds the given extension to the list of terminated extensions if
// it is not already there and unloads it.
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698