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 fdeee8ca3b63bc48b0330017360cd6cc5836da9c..0c3882adebcb29c3f86663ec1bb13ea113c292fe 100644 |
| --- a/chrome/browser/resources/google_now/background.js |
| +++ b/chrome/browser/resources/google_now/background.js |
| @@ -118,7 +118,6 @@ var tasks = buildTaskManager(areTasksConflicting); |
| // Add error processing to API calls. |
| tasks.instrumentChromeApiFunction('location.onLocationUpdate.addListener', 0); |
| -tasks.instrumentChromeApiFunction('metricsPrivate.getFieldTrial', 1); |
| tasks.instrumentChromeApiFunction('metricsPrivate.getVariationParams', 1); |
| tasks.instrumentChromeApiFunction('notifications.create', 2); |
| tasks.instrumentChromeApiFunction('notifications.update', 2); |
| @@ -868,11 +867,11 @@ function onStateChange() { |
| tasks.debugSetStepName('onStateChange-isSignedIn'); |
| authenticationManager.isSignedIn(function(token) { |
| var signedIn = !!token && !!NOTIFICATION_CARDS_URL; |
| - instrumented.metricsPrivate.getFieldTrial( |
| + instrumented.metricsPrivate.getVariationParams( |
| 'GoogleNow', |
| function(response) { |
| - console.log('Experiment Status: ' + response); |
| - var enableBackground = (response != 'EnableWithoutBackground'); |
| + var enableBackground = |
| + (response && (response.enableBackground != 'false')); |
|
vadimt
2013/08/13 21:05:15
!response || response.enableBackground != 'false'.
robliao
2013/08/13 21:09:15
That's a bit more permissive than I was expecting.
vadimt
2013/08/13 21:17:10
Background is a "normal" behavior, and the absence
robliao
2013/08/13 21:30:32
Done.
|
| tasks.debugSetStepName( |
| 'onStateChange-get-googleGeolocationAccessEnabledPref'); |
| instrumented. |