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

Side by Side Diff: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/custom_handlers/register_protocol_handler_infobar_deleg ate.h" 5 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 8 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
9 #include "chrome/browser/google/google_util.h" 9 #include "chrome/browser/google/google_util.h"
10 #include "chrome/browser/infobars/infobar_tab_helper.h" 10 #include "chrome/browser/infobars/infobar_tab_helper.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "content/browser/tab_contents/tab_contents.h"
13 #include "content/public/browser/user_metrics.h" 12 #include "content/public/browser/user_metrics.h"
13 #include "content/public/browser/web_contents.h"
14 #include "grit/generated_resources.h" 14 #include "grit/generated_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 using content::OpenURLParams; 17 using content::OpenURLParams;
18 using content::Referrer; 18 using content::Referrer;
19 using content::UserMetricsAction; 19 using content::UserMetricsAction;
20 20
21 RegisterProtocolHandlerInfoBarDelegate::RegisterProtocolHandlerInfoBarDelegate( 21 RegisterProtocolHandlerInfoBarDelegate::RegisterProtocolHandlerInfoBarDelegate(
22 InfoBarTabHelper* infobar_helper, 22 InfoBarTabHelper* infobar_helper,
23 ProtocolHandlerRegistry* registry, 23 ProtocolHandlerRegistry* registry,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 OpenURLParams params( 98 OpenURLParams params(
99 google_util::AppendGoogleLocaleParam(GURL( 99 google_util::AppendGoogleLocaleParam(GURL(
100 chrome::kLearnMoreRegisterProtocolHandlerURL)), 100 chrome::kLearnMoreRegisterProtocolHandlerURL)),
101 Referrer(), 101 Referrer(),
102 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, 102 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
103 content::PAGE_TRANSITION_LINK, 103 content::PAGE_TRANSITION_LINK,
104 false); 104 false);
105 owner()->web_contents()->OpenURL(params); 105 owner()->web_contents()->OpenURL(params);
106 return false; 106 return false;
107 } 107 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/notifications/balloon_view.cc ('k') | chrome/browser/debugger/browser_list_tabcontents_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698