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 e7a94a5f315935654bcdcf579cb37eac3fac053e..f2663a3bb8d2f1fa59abea403d3cccf9b88aaea1 100644 |
| --- a/chrome/browser/resources/google_now/background.js |
| +++ b/chrome/browser/resources/google_now/background.js |
| @@ -704,6 +704,7 @@ function setShouldPollCards(shouldPollCardsRequest, onSuccess) { |
| 'setShouldRun-shouldRun-updateCardsAttemptsIsRunning'); |
| updateCardsAttempts.isRunning(function(currentValue) { |
| if (shouldPollCardsRequest != currentValue) { |
| + console.log('Action Taken setShouldPollCards=' + shouldPollCardsRequest); |
| if (shouldPollCardsRequest) |
| startPollingCards(); |
| else |
| @@ -728,6 +729,7 @@ function setToastVisible(visibleRequest, onSuccess) { |
| notifications = notifications || {}; |
| if (visibleRequest != !!notifications[WELCOME_TOAST_NOTIFICATION_ID]) { |
| + console.log('Action Taken setToastVisible=' + visibleRequest); |
| if (visibleRequest) |
| showWelcomeToast(); |
| else |
| @@ -754,6 +756,11 @@ function updateRunningState( |
| userRespondedToToast, |
| callback) { |
| + console.log( |
| + 'State Update signedIn=' + signedIn + ' ' + |
| + 'geolocationEnabled=' + geolocationEnabled + ' ' + |
| + 'userRespondedToToast=' + userRespondedToToast); |
| + |
| var shouldSetToastVisible = false; |
| var shouldPollCards = false; |
| @@ -778,6 +785,11 @@ function updateRunningState( |
| recordEvent(GoogleNowEvent.STOPPED); |
| } |
| + |
|
vadimt
2013/08/01 23:06:08
Extra line.
robliao
2013/08/01 23:16:58
Done.
|
| + console.log( |
| + 'Requested Actions setToastVisible=' + shouldSetToastVisible + ' ' + |
| + 'setShouldPollCards=' + shouldPollCards); |
| + |
| setToastVisible(shouldSetToastVisible, function() { |
| setShouldPollCards(shouldPollCards, callback); |
| }); |