Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1694)

Unified Diff: chrome/browser/resources/google_now/background_test_util.js

Issue 19822007: Updated Google Now to Check the Geolocation Access Preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@r213016
Patch Set: Sync and Resolve Conflicts Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/google_now/background_test_util.js
diff --git a/chrome/browser/resources/google_now/background_test_util.js b/chrome/browser/resources/google_now/background_test_util.js
index a2309c1369db30bd30875107e5fec8321d2d4d27..a3d8e284e51cb36e7590e32e3d5a31fc947d10e9 100644
--- a/chrome/browser/resources/google_now/background_test_util.js
+++ b/chrome/browser/resources/google_now/background_test_util.js
@@ -6,7 +6,10 @@
function emptyMock() {}
function buildTaskManager() {
- return {instrumentApiFunction: emptyMock};
+ return {
+ debugSetStepName: emptyMock,
+ instrumentApiFunction: emptyMock,
+ };
}
var instrumentApiFunction = emptyMock;
var buildAttemptManager = emptyMock;
@@ -19,6 +22,11 @@ chrome['notifications'] = {
onClosed: emptyListener
};
chrome['omnibox'] = {onInputEntered: emptyListener};
+chrome['preferencesPrivate'] = {
+ googleGeolocationAccessEnabled: {
+ onChange: emptyListener
+ }
+};
chrome['runtime'] = {
onInstalled: emptyListener,
onStartup: emptyListener
« no previous file with comments | « chrome/browser/resources/google_now/background.js ('k') | chrome/browser/resources/google_now/background_unittest.gtestjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698