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

Unified Diff: components/guest_view/browser/guest_view.h

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/domain_reliability/scheduler.cc ('k') | components/guest_view/browser/guest_view_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/guest_view/browser/guest_view.h
diff --git a/components/guest_view/browser/guest_view.h b/components/guest_view/browser/guest_view.h
index 3bc16ce05db4681f4d5cf1e947e07335242a6de8..70c9fb18037c49da59c3a2808d79936d81901975 100644
--- a/components/guest_view/browser/guest_view.h
+++ b/components/guest_view/browser/guest_view.h
@@ -19,24 +19,24 @@ template <typename T>
class GuestView : public GuestViewBase {
public:
static T* From(int embedder_process_id, int guest_instance_id) {
- auto guest = GuestViewBase::From(embedder_process_id, guest_instance_id);
+ auto* guest = GuestViewBase::From(embedder_process_id, guest_instance_id);
if (!guest)
return nullptr;
return guest->As<T>();
}
static T* FromWebContents(const content::WebContents* contents) {
- auto guest = GuestViewBase::FromWebContents(contents);
+ auto* guest = GuestViewBase::FromWebContents(contents);
return guest ? guest->As<T>() : nullptr;
}
static T* FromFrameID(int render_process_id, int render_frame_id) {
- auto render_frame_host =
+ auto* render_frame_host =
content::RenderFrameHost::FromID(render_process_id, render_frame_id);
if (!render_frame_host)
return nullptr;
- auto web_contents =
+ auto* web_contents =
content::WebContents::FromRenderFrameHost(render_frame_host);
return FromWebContents(web_contents);
}
« no previous file with comments | « components/domain_reliability/scheduler.cc ('k') | components/guest_view/browser/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698