Chromium Code Reviews| Index: chrome/browser/extensions/extension_tab_id_map.cc |
| diff --git a/chrome/browser/extensions/extension_tab_id_map.cc b/chrome/browser/extensions/extension_tab_id_map.cc |
| index e3c92e1a971930f91c894a2c1b338614a082b8d9..e5db192f4424af5eeaa13e3f27b35bbe02476b74 100644 |
| --- a/chrome/browser/extensions/extension_tab_id_map.cc |
| +++ b/chrome/browser/extensions/extension_tab_id_map.cc |
| @@ -186,3 +186,17 @@ bool ExtensionTabIdMap::GetTabAndWindowId( |
| } |
| return false; |
| } |
| + |
| +bool ExtensionTabIdMap::GetProcessAndRoutingId( |
| + int tab_id, int* render_process_host_id, int* routing_id) { |
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| + for (TabAndWindowIdMap::iterator iter = map_.begin(); iter != map_.end(); |
| + iter++) { |
|
Alpha Left Google
2012/10/04 20:52:01
indentation is wrong here
justinlin
2012/10/08 09:58:31
Done.
|
| + if (iter->second.first == tab_id) { |
| + *render_process_host_id = iter->first.first; |
| + *routing_id = iter->first.second; |
| + return true; |
| + } |
| + } |
| + return false; |
| +} |