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

Side by Side Diff: chrome/browser/ui/startup/obsolete_os_info_bar.cc

Issue 10690060: startup: Put it in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 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/ui/startup/obsolete_os_info_bar.h" 5 #include "chrome/browser/ui/startup/obsolete_os_info_bar.h"
6 6
7 #include "chrome/browser/infobars/infobar_tab_helper.h" 7 #include "chrome/browser/infobars/infobar_tab_helper.h"
8 #include "chrome/browser/ui/tab_contents/tab_contents.h" 8 #include "chrome/browser/ui/tab_contents/tab_contents.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 12
13 using content::OpenURLParams; 13 using content::OpenURLParams;
14 using content::Referrer; 14 using content::Referrer;
15 15
16 namespace browser { 16 namespace chrome {
17 17
18 ObsoleteOSInfoBar::ObsoleteOSInfoBar(InfoBarTabHelper* infobar_helper, 18 ObsoleteOSInfoBar::ObsoleteOSInfoBar(InfoBarTabHelper* infobar_helper,
19 const string16& message, 19 const string16& message,
20 const GURL& url) 20 const GURL& url)
21 : LinkInfoBarDelegate(infobar_helper), 21 : LinkInfoBarDelegate(infobar_helper),
22 message_(message), 22 message_(message),
23 learn_more_url_(url) { 23 learn_more_url_(url) {
24 } 24 }
25 25
26 ObsoleteOSInfoBar::~ObsoleteOSInfoBar() { 26 ObsoleteOSInfoBar::~ObsoleteOSInfoBar() {
(...skipping 12 matching lines...) Expand all
39 } 39 }
40 40
41 bool ObsoleteOSInfoBar::LinkClicked(WindowOpenDisposition disposition) { 41 bool ObsoleteOSInfoBar::LinkClicked(WindowOpenDisposition disposition) {
42 OpenURLParams params( 42 OpenURLParams params(
43 learn_more_url_, Referrer(), disposition, content::PAGE_TRANSITION_LINK, 43 learn_more_url_, Referrer(), disposition, content::PAGE_TRANSITION_LINK,
44 false); 44 false);
45 owner()->web_contents()->OpenURL(params); 45 owner()->web_contents()->OpenURL(params);
46 return false; 46 return false;
47 } 47 }
48 48
49 } // namespace browser 49 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/obsolete_os_info_bar.h ('k') | chrome/browser/ui/startup/obsolete_os_prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698