OLD | NEW |
---|---|
(Empty) | |
1 ntpMock = {}; | |
jeremycho_google
2012/07/31 03:09:16
Is this file still needed?
pedrosimonetti2
2012/08/03 18:14:01
No. This was the old version of the Super-Awesome-
| |
2 | |
3 ntpMock.getMostVisited = { | |
4 context: ntp, | |
5 callback: ntp.setMostVisitedPages, | |
6 args: [ | |
7 // data | |
8 [ | |
9 { | |
10 "direction": "ltr", | |
11 "title": "The New York Times - Breaking News, World News & Multimedia", | |
12 "url": "http://nytimes.com/", | |
13 "thumbnail": "chrome---thumb-http---www.nytimes.com-" | |
14 }, | |
15 { | |
16 "direction": "ltr", | |
17 "title": "YouTube - Broadcast Yourself.", | |
18 "url": "http://www.youtube.com/", | |
19 "thumbnail": "chrome---thumb-http---www.youtube.com-" | |
20 }, | |
21 { | |
22 "direction": "ltr", | |
23 "title": "CNN.com - Breaking News, U.S., World, Weather, Entertainment & Video News", | |
24 "url": "http://cnn.com/", | |
25 "thumbnail": "chrome---thumb-http---www.cnn.com-" | |
26 }, | |
27 { | |
28 "direction": "ltr", | |
29 "title": "Electronics, Cars, Fashion, Collectibles, Coupons and More Onl ine Shopping | eBay", | |
30 "url": "http://ebay.com/", | |
31 "thumbnail": "chrome---thumb-http---www.ebay.com-" | |
32 }, | |
33 { | |
34 "direction": "ltr", | |
35 "title": "WEFUNK Radio - Hip-Hop & The Original Funk", | |
36 "url": "http://wefunkradio.com/", | |
37 "thumbnail": "chrome---thumb-http---www.wefunkradio.com-" | |
38 }, | |
39 { | |
40 "direction": "ltr", | |
41 "title": "Google Maps", | |
42 "url": "http://maps.google.com/", | |
43 "thumbnail": "chrome---thumb-http---maps.google.com-" | |
44 }, | |
45 { | |
46 "direction": "ltr", | |
47 "title": "Welcome to Google Chrome", | |
48 "url": "http://www.google.com/chrome/intl/en/welcome.html", | |
49 "thumbnail": "http---www.google.com-chrome-intl-en-welcome.html" | |
50 }, | |
51 { | |
52 "direction": "ltr", | |
53 "title": "Chrome Web Store", | |
54 "url": "https://chrome.google.com/webstore?hl=en", | |
55 "thumbnail": "chrome---thumb-https---chrome.google.com-webstore-category -home" | |
56 } | |
57 ], | |
58 // hasBlacklistedUrls | |
59 false | |
60 ] | |
61 }; | |
62 | |
63 chrome.send_ = chrome.send; | |
64 | |
65 chrome.send = function(message) { | |
66 var mock = ntpMock[message]; | |
67 if (mock) { | |
68 setTimeout(function(){ | |
69 mock.callback.apply(mock.context, mock.args); | |
70 }, 0); | |
71 } else { | |
72 chrome.send_(message); | |
73 } | |
74 } | |
OLD | NEW |