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

Unified Diff: chrome/third_party/mock4js/examples/PriceService.js

Issue 347283004: Convert mock4js line endings to LF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/third_party/mock4js/examples/PriceServiceTest.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/third_party/mock4js/examples/PriceService.js
diff --git a/chrome/third_party/mock4js/examples/PriceService.js b/chrome/third_party/mock4js/examples/PriceService.js
index f20aa9394c53dfd3f35f04e934951d2e2df212b4..825fd8823d5868c927f385ea375f959d98838115 100644
--- a/chrome/third_party/mock4js/examples/PriceService.js
+++ b/chrome/third_party/mock4js/examples/PriceService.js
@@ -1,43 +1,43 @@
-/**
- * PriceCache
- */
-function PriceCache() {
-}
-
-PriceCache.prototype = {
- getCachedPrice: function(instrumentId) {
- },
- setCachedPrice: function(instrumentId, price) {
- }
-}
-
-/**
- * PriceFetcher
- */
-function PriceFetcher() {
-}
-
-PriceFetcher.prototype = {
- getPriceFromServer: function(instrumentId) {
- }
-}
-
-
-/**
- * PriceService
- */
-function PriceService(priceFetcher, priceCache) {
- this._priceFetcher = priceFetcher;
- this._priceCache = priceCache;
-}
-
-PriceService.prototype = {
- getPrice: function(instrumentId) {
- var price = this._priceCache.getCachedPrice(instrumentId);
- if(price==null) {
- price = this._priceFetcher.getPriceFromServer(instrumentId);
- this._priceCache.setCachedPrice(instrumentId, price);
- }
- return price;
- }
-}
+/**
+ * PriceCache
+ */
+function PriceCache() {
+}
+
+PriceCache.prototype = {
+ getCachedPrice: function(instrumentId) {
+ },
+ setCachedPrice: function(instrumentId, price) {
+ }
+}
+
+/**
+ * PriceFetcher
+ */
+function PriceFetcher() {
+}
+
+PriceFetcher.prototype = {
+ getPriceFromServer: function(instrumentId) {
+ }
+}
+
+
+/**
+ * PriceService
+ */
+function PriceService(priceFetcher, priceCache) {
+ this._priceFetcher = priceFetcher;
+ this._priceCache = priceCache;
+}
+
+PriceService.prototype = {
+ getPrice: function(instrumentId) {
+ var price = this._priceCache.getCachedPrice(instrumentId);
+ if(price==null) {
+ price = this._priceFetcher.getPriceFromServer(instrumentId);
+ this._priceCache.setCachedPrice(instrumentId, price);
+ }
+ return price;
+ }
+}
« no previous file with comments | « no previous file | chrome/third_party/mock4js/examples/PriceServiceTest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698