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

Unified Diff: extensions/browser/api/runtime/runtime_api_delegate.h

Issue 936123002: [Extensions] Implement chrome.runtime.openOptionsPage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: default impl Created 5 years, 10 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/runtime/runtime_api_delegate.h
diff --git a/extensions/browser/api/runtime/runtime_api_delegate.h b/extensions/browser/api/runtime/runtime_api_delegate.h
index 98b49639bc80334cd2e5bc9d9f452bd6d96464d3..a704c2fae9a2c585e53012aa4589b85b29bf7b60 100644
--- a/extensions/browser/api/runtime/runtime_api_delegate.h
+++ b/extensions/browser/api/runtime/runtime_api_delegate.h
@@ -70,6 +70,11 @@ class RuntimeAPIDelegate {
// Request a restart of the host device. Returns false iff the device
// will not be restarted.
virtual bool RestartDevice(std::string* error_message) = 0;
+
+ // Open |extension|'s options page, if it has one. Returns true if an
+ // options page was opened, false otherwise. See the docs of the
+ // chrome.runtime.openOptionsPage function for the gritty details.
+ virtual bool OpenOptionsPage(const Extension* extension);
};
} // namespace extensions
« no previous file with comments | « extensions/browser/api/runtime/runtime_api.cc ('k') | extensions/browser/api/runtime/runtime_api_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698