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

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

Issue 1239643004: extensions: tabs: set tab id to -1 for app/devtools windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test chrome.tabs events Created 5 years, 5 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 d2d7fd5c7da18545a7b7266863ba8531595e4675..6a23c182d51bb559a849d2ae5180e82926fdbb23 100644
--- a/chrome/browser/extensions/extension_tab_util.h
+++ b/chrome/browser/extensions/extension_tab_util.h
@@ -177,6 +177,10 @@ class ExtensionTabUtil {
// successfully opened (though it may not necessarily *load*, e.g. if the
// URL does not exist).
static bool OpenOptionsPage(const Extension* extension, Browser* browser);
+
+ // Returns true if the given Browser can report tabs to extensions.
+ // Will return false for a devtools browser.
not at google - send to devlin 2015/07/20 21:29:18 I'd replace the second like with: "Example of Brow
llandwerlin-old 2015/07/21 09:45:41 Done.
+ static bool BrowserSupportsTabs(Browser* browser);
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698