| 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..aa68162313ed48f53b2c64666c6a21d938af991c 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,10 @@ function updateRunningState(
|
| recordEvent(GoogleNowEvent.STOPPED);
|
| }
|
|
|
| + console.log(
|
| + 'Requested Actions setToastVisible=' + shouldSetToastVisible + ' ' +
|
| + 'setShouldPollCards=' + shouldPollCards);
|
| +
|
| setToastVisible(shouldSetToastVisible, function() {
|
| setShouldPollCards(shouldPollCards, callback);
|
| });
|
|
|