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

Side by Side Diff: chrome/browser/extensions/extension_host.cc

Issue 191173002: Fix typo in ExtensionHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/extension_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // synchronously. The process creation is the real meaty part that we want 188 // synchronously. The process creation is the real meaty part that we want
189 // to defer. 189 // to defer.
190 CreateRenderViewNow(); 190 CreateRenderViewNow();
191 } else { 191 } else {
192 ProcessCreationQueue::GetInstance()->CreateSoon(this); 192 ProcessCreationQueue::GetInstance()->CreateSoon(this);
193 } 193 }
194 } 194 }
195 195
196 void ExtensionHost::CreateRenderViewNow() { 196 void ExtensionHost::CreateRenderViewNow() {
197 LoadInitialURL(); 197 LoadInitialURL();
198 if (!IsBackgroundPage()) { 198 if (IsBackgroundPage()) {
199 DCHECK(IsRenderViewLive()); 199 DCHECK(IsRenderViewLive());
200 ExtensionsBrowserClient::Get()->OnRenderViewCreatedForBackgroundPage(this); 200 ExtensionsBrowserClient::Get()->OnRenderViewCreatedForBackgroundPage(this);
201 } 201 }
202 } 202 }
203 203
204 const GURL& ExtensionHost::GetURL() const { 204 const GURL& ExtensionHost::GetURL() const {
205 return host_contents()->GetURL(); 205 return host_contents()->GetURL();
206 } 206 }
207 207
208 void ExtensionHost::LoadInitialURL() { 208 void ExtensionHost::LoadInitialURL() {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 bool ExtensionHost::PreHandleGestureEvent( 473 bool ExtensionHost::PreHandleGestureEvent(
474 content::WebContents* source, 474 content::WebContents* source,
475 const blink::WebGestureEvent& event) { 475 const blink::WebGestureEvent& event) {
476 // Disable pinch zooming. 476 // Disable pinch zooming.
477 return event.type == blink::WebGestureEvent::GesturePinchBegin || 477 return event.type == blink::WebGestureEvent::GesturePinchBegin ||
478 event.type == blink::WebGestureEvent::GesturePinchUpdate || 478 event.type == blink::WebGestureEvent::GesturePinchUpdate ||
479 event.type == blink::WebGestureEvent::GesturePinchEnd; 479 event.type == blink::WebGestureEvent::GesturePinchEnd;
480 } 480 }
481 481
482 } // namespace extensions 482 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698