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

Side by Side Diff: chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.cc

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factor y.h"
6
7 #if defined(OS_ANDROID)
8 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_androi d.h"
9 #else
10 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h"
11 #endif
12
13 GeolocationConfirmInfoBarDelegate*
14 GeolocationConfirmInfoBarDelegateFactory::Create(
15 InfoBarService* infobar_service,
16 GeolocationInfoBarQueueController* controller,
17 const GeolocationPermissionRequestID& id,
18 const GURL& requesting_frame_url,
19 const std::string& display_languages) {
20 #if defined(OS_ANDROID)
21 return new GeolocationConfirmInfoBarDelegateAndroid(
22 #else
23 return new GeolocationConfirmInfoBarDelegate(
24 #endif
25 infobar_service, controller, id, requesting_frame_url, display_languages);
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698