| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromecast/shell/browser/geolocation/cast_access_token_store.h" | 5 #include "chromecast/browser/geolocation/cast_access_token_store.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "chromecast/shell/browser/cast_browser_context.h" | 8 #include "chromecast/browser/cast_browser_context.h" |
| 9 #include "chromecast/shell/browser/cast_content_browser_client.h" | 9 #include "chromecast/browser/cast_content_browser_client.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
| 12 | 12 |
| 13 namespace chromecast { | 13 namespace chromecast { |
| 14 namespace shell { | 14 namespace shell { |
| 15 | 15 |
| 16 CastAccessTokenStore::CastAccessTokenStore( | 16 CastAccessTokenStore::CastAccessTokenStore( |
| 17 content::BrowserContext* browser_context) | 17 content::BrowserContext* browser_context) |
| 18 : browser_context_(browser_context) { | 18 : browser_context_(browser_context) { |
| 19 } | 19 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 void CastAccessTokenStore::SaveAccessToken( | 43 void CastAccessTokenStore::SaveAccessToken( |
| 44 const GURL& server_url, const base::string16& access_token) { | 44 const GURL& server_url, const base::string16& access_token) { |
| 45 if (access_token_set_[server_url] != access_token) { | 45 if (access_token_set_[server_url] != access_token) { |
| 46 access_token_set_[server_url] = access_token; | 46 access_token_set_[server_url] = access_token; |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace shell | 50 } // namespace shell |
| 51 } // namespace chromecast | 51 } // namespace chromecast |
| OLD | NEW |