| OLD | NEW |
| 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/webui/set_as_default_browser_ui_win.h" | 5 #include "chrome/browser/ui/webui/set_as_default_browser_ui_win.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 content::WebUIDataSource* CreateSetAsDefaultBrowserUIHTMLSource() { | 68 content::WebUIDataSource* CreateSetAsDefaultBrowserUIHTMLSource() { |
| 69 content::WebUIDataSource* data_source = | 69 content::WebUIDataSource* data_source = |
| 70 content::WebUIDataSource::Create(chrome::kChromeUIMetroFlowHost); | 70 content::WebUIDataSource::Create(chrome::kChromeUIMetroFlowHost); |
| 71 data_source->AddLocalizedString("page-title", IDS_METRO_FLOW_TAB_TITLE); | 71 data_source->AddLocalizedString("page-title", IDS_METRO_FLOW_TAB_TITLE); |
| 72 data_source->AddLocalizedString("flowTitle", IDS_METRO_FLOW_TITLE_SHORT); | 72 data_source->AddLocalizedString("flowTitle", IDS_METRO_FLOW_TITLE_SHORT); |
| 73 data_source->AddLocalizedString("flowDescription", | 73 data_source->AddLocalizedString("flowDescription", |
| 74 IDS_METRO_FLOW_DESCRIPTION); | 74 IDS_METRO_FLOW_DESCRIPTION); |
| 75 data_source->AddLocalizedString("flowNext", IDS_METRO_FLOW_SET_DEFAULT); | 75 data_source->AddLocalizedString("flowNext", IDS_METRO_FLOW_SET_DEFAULT); |
| 76 data_source->AddLocalizedString("chromeLogoString", | 76 data_source->AddLocalizedString("chromeLogoString", |
| 77 IDS_METRO_FLOW_LOGO_STRING_ALT); | 77 IDS_SHORT_PRODUCT_LOGO_ALT_TEXT); |
| 78 data_source->SetJsonPath("strings.js"); | 78 data_source->SetJsonPath("strings.js"); |
| 79 data_source->AddResourcePath("set_as_default_browser.js", | 79 data_source->AddResourcePath("set_as_default_browser.js", |
| 80 IDR_SET_AS_DEFAULT_BROWSER_JS); | 80 IDR_SET_AS_DEFAULT_BROWSER_JS); |
| 81 data_source->SetDefaultResource(IDR_SET_AS_DEFAULT_BROWSER_HTML); | 81 data_source->SetDefaultResource(IDR_SET_AS_DEFAULT_BROWSER_HTML); |
| 82 return data_source; | 82 return data_source; |
| 83 } | 83 } |
| 84 | 84 |
| 85 // A simple class serving as a delegate for passing down the result of the | 85 // A simple class serving as a delegate for passing down the result of the |
| 86 // interaction. | 86 // interaction. |
| 87 class ResponseDelegate { | 87 class ResponseDelegate { |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 // static | 362 // static |
| 363 void SetAsDefaultBrowserUI::Show(Profile* profile) { | 363 void SetAsDefaultBrowserUI::Show(Profile* profile) { |
| 364 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 364 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 365 new SetAsDefaultBrowserDialogImpl(profile); | 365 new SetAsDefaultBrowserDialogImpl(profile); |
| 366 } | 366 } |
| 367 | 367 |
| 368 // static | 368 // static |
| 369 views::Widget* SetAsDefaultBrowserUI::GetDialogWidgetForTesting() { | 369 views::Widget* SetAsDefaultBrowserUI::GetDialogWidgetForTesting() { |
| 370 return SetAsDefaultBrowserDialogImpl::dialog_widget(); | 370 return SetAsDefaultBrowserDialogImpl::dialog_widget(); |
| 371 } | 371 } |
| OLD | NEW |