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

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

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | 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/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 using content::NavigationController; 217 using content::NavigationController;
218 using content::NavigationEntry; 218 using content::NavigationEntry;
219 using content::OpenURLParams; 219 using content::OpenURLParams;
220 using content::PluginService; 220 using content::PluginService;
221 using content::Referrer; 221 using content::Referrer;
222 using content::SiteInstance; 222 using content::SiteInstance;
223 using content::SSLStatus; 223 using content::SSLStatus;
224 using content::UserMetricsAction; 224 using content::UserMetricsAction;
225 using content::WebContents; 225 using content::WebContents;
226 using extensions::Extension; 226 using extensions::Extension;
227 using ui::WebDialogDelegate;
227 228
228 /////////////////////////////////////////////////////////////////////////////// 229 ///////////////////////////////////////////////////////////////////////////////
229 230
230 namespace { 231 namespace {
231 232
232 // The URL to be loaded to display the "Report a broken page" form. 233 // The URL to be loaded to display the "Report a broken page" form.
233 const char kBrokenPageUrl[] = 234 const char kBrokenPageUrl[] =
234 "https://www.google.com/support/chrome/bin/request.py?contact_type=" 235 "https://www.google.com/support/chrome/bin/request.py?contact_type="
235 "broken_website&format=inproduct&p.page_title=$1&p.page_url=$2"; 236 "broken_website&format=inproduct&p.page_title=$1&p.page_url=$2";
236 237
(...skipping 4874 matching lines...) Expand 10 before | Expand all | Expand 10 after
5111 if (contents && !allow_js_access) { 5112 if (contents && !allow_js_access) {
5112 contents->web_contents()->GetController().LoadURL( 5113 contents->web_contents()->GetController().LoadURL(
5113 target_url, 5114 target_url,
5114 content::Referrer(), 5115 content::Referrer(),
5115 content::PAGE_TRANSITION_LINK, 5116 content::PAGE_TRANSITION_LINK,
5116 std::string()); // No extra headers. 5117 std::string()); // No extra headers.
5117 } 5118 }
5118 5119
5119 return contents != NULL; 5120 return contents != NULL;
5120 } 5121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698