Chromium Code Reviews| Index: chrome/browser/resources/google_now/background.js |
| diff --git a/chrome/browser/resources/google_now/background.js b/chrome/browser/resources/google_now/background.js |
| index d1d896aeac47868d8d22319306c5269cb8e01df8..4a6aa825280cd730d5863f1d2aec2bab14f4de0e 100644 |
| --- a/chrome/browser/resources/google_now/background.js |
| +++ b/chrome/browser/resources/google_now/background.js |
| @@ -591,7 +591,9 @@ function onNotificationClicked(notificationId, selector) { |
| return; |
| instrumented.tabs.create({url: url}, function(tab) { |
| - if (!tab) |
| + if (tab) |
| + chrome.windows.update(tab.windowId, {focused: true}); |
| + else |
| chrome.windows.create({url: url}); |
|
rgustafson
2013/08/14 01:02:03
My concern is whether the same will happen with th
vadimt
2013/08/14 01:35:03
Done.
|
| }); |
| }); |