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

Unified Diff: chrome/browser/extensions/extension_tab_util.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: chrome/browser/extensions/extension_tab_util.h
diff --git a/chrome/browser/extensions/extension_tab_util.h b/chrome/browser/extensions/extension_tab_util.h
index 5a45abf8283c9a61a38326d2ad602b2eac72ea15..6736db442ff8cf27c886c039cb1db1f363403c20 100644
--- a/chrome/browser/extensions/extension_tab_util.h
+++ b/chrome/browser/extensions/extension_tab_util.h
@@ -171,8 +171,10 @@ class ExtensionTabUtil {
static WindowController* GetWindowControllerOfTab(
const content::WebContents* web_contents);
- // Open the extension's options page.
- static void OpenOptionsPage(const Extension* extension, Browser* browser);
+ // Open the extension's options page. Returns true if an options page was
+ // successfully opened (though it may not necessarily *load*, e.g. if the
+ // URL does not exist).
+ static bool OpenOptionsPage(const Extension* extension, Browser* browser);
};
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc ('k') | chrome/browser/extensions/extension_tab_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698