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

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

Issue 2911773002: Clean up unused grit header includes in chrome/ (Closed)
Patch Set: rebase Created 3 years, 6 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
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_system_infobar_delegate.h" 5 #include "chrome/browser/ui/startup/obsolete_system_infobar_delegate.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "chrome/browser/obsolete_system/obsolete_system.h" 9 #include "chrome/browser/obsolete_system/obsolete_system.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/grit/chromium_strings.h"
13 #include "components/infobars/core/infobar.h" 12 #include "components/infobars/core/infobar.h"
14 #include "components/prefs/pref_service.h" 13 #include "components/prefs/pref_service.h"
15 #include "components/strings/grit/components_strings.h" 14 #include "components/strings/grit/components_strings.h"
16 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
17 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
18 17
19 // static 18 // static
20 void ObsoleteSystemInfoBarDelegate::Create(InfoBarService* infobar_service) { 19 void ObsoleteSystemInfoBarDelegate::Create(InfoBarService* infobar_service) {
21 PrefService* local_state = g_browser_process->local_state(); 20 PrefService* local_state = g_browser_process->local_state();
22 if (local_state && 21 if (local_state &&
(...skipping 27 matching lines...) Expand all
50 return BUTTON_NONE; 49 return BUTTON_NONE;
51 } 50 }
52 51
53 base::string16 ObsoleteSystemInfoBarDelegate::GetLinkText() const { 52 base::string16 ObsoleteSystemInfoBarDelegate::GetLinkText() const {
54 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); 53 return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
55 } 54 }
56 55
57 GURL ObsoleteSystemInfoBarDelegate::GetLinkURL() const { 56 GURL ObsoleteSystemInfoBarDelegate::GetLinkURL() const {
58 return GURL(ObsoleteSystem::GetLinkURL()); 57 return GURL(ObsoleteSystem::GetLinkURL());
59 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698