| 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..453469f59c0bf2b7c5ab9980eb0299a425712cc9 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++) {
|
| + if (iter->second.first == tab_id) {
|
| + *render_process_host_id = iter->first.first;
|
| + *routing_id = iter->first.second;
|
| + }
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
|
|