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

Side by Side Diff: chrome/browser/three_d_api_observer.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix components/OWNERS Created 6 years, 8 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
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/three_d_api_observer.h" 5 #include "chrome/browser/three_d_api_observer.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 8 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
9 #include "chrome/browser/infobars/infobar.h"
10 #include "chrome/browser/infobars/infobar_service.h" 9 #include "chrome/browser/infobars/infobar_service.h"
11 #include "chrome/browser/tab_contents/tab_util.h" 10 #include "chrome/browser/tab_contents/tab_util.h"
11 #include "components/infobars/core/infobar.h"
12 #include "content/public/browser/gpu_data_manager.h" 12 #include "content/public/browser/gpu_data_manager.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "grit/theme_resources.h" 14 #include "grit/theme_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 17
18 // ThreeDAPIInfoBarDelegate --------------------------------------------------- 18 // ThreeDAPIInfoBarDelegate ---------------------------------------------------
19 19
20 class ThreeDAPIInfoBarDelegate : public ConfirmInfoBarDelegate { 20 class ThreeDAPIInfoBarDelegate : public ConfirmInfoBarDelegate {
21 public: 21 public:
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int render_process_id, 166 int render_process_id,
167 int render_view_id, 167 int render_view_id,
168 content::ThreeDAPIType requester) { 168 content::ThreeDAPIType requester) {
169 content::WebContents* web_contents = tab_util::GetWebContentsByID( 169 content::WebContents* web_contents = tab_util::GetWebContentsByID(
170 render_process_id, render_view_id); 170 render_process_id, render_view_id);
171 if (!web_contents) 171 if (!web_contents)
172 return; 172 return;
173 ThreeDAPIInfoBarDelegate::Create( 173 ThreeDAPIInfoBarDelegate::Create(
174 InfoBarService::FromWebContents(web_contents), url, requester); 174 InfoBarService::FromWebContents(web_contents), url, requester);
175 } 175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698