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

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: 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 process_type, dumps_path, false /* upload */); 553 process_type, dumps_path, false /* upload */);
553 // StartUploaderThread() even though upload is diferred. 554 // StartUploaderThread() even though upload is diferred.
554 // Breakpad-related memory is freed in the uploader thread. 555 // Breakpad-related memory is freed in the uploader thread.
555 crash_handler->StartUploaderThread(); 556 crash_handler->StartUploaderThread();
556 return crash_handler; 557 return crash_handler;
557 } 558 }
558 #endif // !defined(OS_ANDROID) 559 #endif // !defined(OS_ANDROID)
559 560
560 } // namespace shell 561 } // namespace shell
561 } // namespace chromecast 562 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698