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

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

Issue 10829186: Tabs API is usable without tabs permission. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ETU now SetString()'s for empty values 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_tab_util.h
diff --git a/chrome/browser/extensions/extension_tab_util.h b/chrome/browser/extensions/extension_tab_util.h
index ec87b266f9030b67eef9dd197acd1c29b2b09eb5..0261164a8d5eecde9114f3fdb8a9f7d6800c82b9 100644
--- a/chrome/browser/extensions/extension_tab_util.h
+++ b/chrome/browser/extensions/extension_tab_util.h
@@ -42,17 +42,22 @@ class ExtensionTabUtil {
static int GetTabId(const content::WebContents* web_contents);
static std::string GetTabStatusText(bool is_loading);
static int GetWindowIdOfTab(const content::WebContents* web_contents);
- static base::ListValue* CreateTabList(const Browser* browser);
+ static base::ListValue* CreateTabList(
+ const Browser* browser,
+ const extensions::Extension* extension);
static base::DictionaryValue* CreateTabValue(
- const content::WebContents* web_contents);
+ const content::WebContents* web_contents,
+ const extensions::Extension* extension);
static base::DictionaryValue* CreateTabValue(
const content::WebContents* web_contents,
TabStripModel* tab_strip,
- int tab_index);
+ int tab_index,
+ const extensions::Extension* extension);
// Create a tab value, overriding its kSelectedKey to the provided boolean.
static base::DictionaryValue* CreateTabValueActive(
const content::WebContents* web_contents,
- bool active);
+ bool active,
+ const extensions::Extension* extension);
// Gets the |tab_strip_model| and |tab_index| for the given |web_contents|.
static bool GetTabStripModel(const content::WebContents* web_contents,
« no previous file with comments | « chrome/browser/extensions/execute_script_apitest.cc ('k') | chrome/browser/extensions/extension_tab_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698