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

Side by Side Diff: chromecast/browser/cast_content_browser_client.cc

Issue 2129313002: Geolocation cleanup: corrects uses of content::AccessTokenStore* and net::URLRequestContextGetter* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed StartTestStepFromClientThread() Created 4 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 unified diff | Download patch
OLDNEW
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/browser/cast_content_browser_client.h" 5 #include "chromecast/browser/cast_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 new ::media::MojoMediaApplication(std::move(mojo_media_client), 86 new ::media::MojoMediaApplication(std::move(mojo_media_client),
87 quit_closure)); 87 quit_closure));
88 } 88 }
89 #endif // defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 89 #endif // defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
90 90
91 // A provider of services for Geolocation. 91 // A provider of services for Geolocation.
92 class CastGeolocationDelegate : public content::GeolocationDelegate { 92 class CastGeolocationDelegate : public content::GeolocationDelegate {
93 public: 93 public:
94 explicit CastGeolocationDelegate(CastBrowserContext* context) 94 explicit CastGeolocationDelegate(CastBrowserContext* context)
95 : context_(context) {} 95 : context_(context) {}
96 content::AccessTokenStore* CreateAccessTokenStore() override { 96
97 scoped_refptr<content::AccessTokenStore> CreateAccessTokenStore() override {
97 return new CastAccessTokenStore(context_); 98 return new CastAccessTokenStore(context_);
98 } 99 }
99 100
100 private: 101 private:
101 CastBrowserContext* context_; 102 CastBrowserContext* context_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(CastGeolocationDelegate); 104 DISALLOW_COPY_AND_ASSIGN(CastGeolocationDelegate);
104 }; 105 };
105 106
106 } // namespace 107 } // namespace
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 process_type, dumps_path, false /* upload */); 554 process_type, dumps_path, false /* upload */);
554 // StartUploaderThread() even though upload is diferred. 555 // StartUploaderThread() even though upload is diferred.
555 // Breakpad-related memory is freed in the uploader thread. 556 // Breakpad-related memory is freed in the uploader thread.
556 crash_handler->StartUploaderThread(); 557 crash_handler->StartUploaderThread();
557 return crash_handler; 558 return crash_handler;
558 } 559 }
559 #endif // !defined(OS_ANDROID) 560 #endif // !defined(OS_ANDROID)
560 561
561 } // namespace shell 562 } // namespace shell
562 } // namespace chromecast 563 } // namespace chromecast
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/access_token_store_browsertest.cc ('k') | content/browser/geolocation/fake_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698