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

Unified Diff: chrome/browser/extensions/api/terminal/terminal_extension_helper.h

Issue 9317013: Add a centralized mechanism for whitelisting access to extension permissions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: merge TerminalPrivate api changes Created 8 years, 11 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/api/terminal/terminal_extension_helper.h
diff --git a/chrome/browser/extensions/api/terminal/terminal_extension_helper.h b/chrome/browser/extensions/api/terminal/terminal_extension_helper.h
index 58caca400dcdf3d30129366f1dafa3c6a32865ce..ff823063a9b13227bfa64f7b8affe628b4a86f95 100644
--- a/chrome/browser/extensions/api/terminal/terminal_extension_helper.h
+++ b/chrome/browser/extensions/api/terminal/terminal_extension_helper.h
@@ -10,21 +10,14 @@
#include "googleurl/src/gurl.h"
+class Extension;
class Profile;
class TerminalExtensionHelper {
public:
- // Checks if the extension whose id is |extension_id| is allowed to access
- // terminalPrivate API.
- static bool AllowAccessToExtension(Profile* profile,
- const std::string& extension_id);
// Returns Hterm extension's entry point for Crosh. If no HTerm extension is
// installed, returns empty url.
static GURL GetCroshExtensionURL(Profile* profile);
-
- private:
- // Returns id of installed HTerm extension (if any), or NULL.
- static const char* GetTerminalExtensionId(Profile* profile);
};
#endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_EXTENSION_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698