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

Side by Side Diff: chrome/browser/printing/printing_ui_web_contents_observer.cc

Issue 506273004: Removed redundant PrintingUIWebContentsObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tue Aug 26 14:12:01 PDT 2014 Created 6 years, 3 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
« no previous file with comments | « chrome/browser/printing/printing_ui_web_contents_observer.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/printing/printing_ui_web_contents_observer.h"
6
7 #include "content/public/browser/browser_thread.h"
8 #include "content/public/browser/web_contents.h"
9
10 namespace printing {
11
12 PrintingUIWebContentsObserver::PrintingUIWebContentsObserver(
13 content::WebContents* web_contents)
14 : content::WebContentsObserver(web_contents) {
15 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
16 }
17
18 PrintingUIWebContentsObserver::~PrintingUIWebContentsObserver() {
19 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
20 }
21
22 gfx::NativeView PrintingUIWebContentsObserver::GetParentView() {
23 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
24 return web_contents() ? web_contents()->GetNativeView() : NULL;
25 }
26
27 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_ui_web_contents_observer.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698