| OLD | NEW | 
|---|
| 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/first_run/try_chrome_dialog_view.h" | 5 #include "chrome/browser/first_run/try_chrome_dialog_view.h" | 
| 6 | 6 | 
| 7 #include <shellapi.h> | 7 #include <shellapi.h> | 
| 8 | 8 | 
| 9 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" | 
| 11 #include "base/string16.h" | 11 #include "base/string16.h" | 
| 12 #include "chrome/browser/process_singleton.h" | 12 #include "chrome/browser/process_singleton.h" | 
| 13 #include "chrome/installer/util/browser_distribution.h" | 13 #include "chrome/installer/util/browser_distribution.h" | 
| 14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" | 
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" | 
| 16 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" | 
|  | 17 #include "grit/theme_resources_standard.h" | 
| 17 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" | 
| 18 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" | 
| 19 #include "views/controls/button/image_button.h" | 20 #include "views/controls/button/image_button.h" | 
| 20 #include "views/controls/button/radio_button.h" | 21 #include "views/controls/button/radio_button.h" | 
| 21 #include "views/controls/image_view.h" | 22 #include "views/controls/image_view.h" | 
| 22 #include "views/controls/link.h" | 23 #include "views/controls/link.h" | 
| 23 #include "views/layout/grid_layout.h" | 24 #include "views/layout/grid_layout.h" | 
| 24 #include "views/layout/layout_constants.h" | 25 #include "views/layout/layout_constants.h" | 
| 25 #include "views/widget/root_view.h" | 26 #include "views/widget/root_view.h" | 
| 26 #include "views/widget/widget.h" | 27 #include "views/widget/widget.h" | 
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 252     // The outcome is according to the selected ratio button. | 253     // The outcome is according to the selected ratio button. | 
| 253     result_ = try_chrome_->checked() ? TRY_CHROME : UNINSTALL_CHROME; | 254     result_ = try_chrome_->checked() ? TRY_CHROME : UNINSTALL_CHROME; | 
| 254   } | 255   } | 
| 255   popup_->Close(); | 256   popup_->Close(); | 
| 256   MessageLoop::current()->Quit(); | 257   MessageLoop::current()->Quit(); | 
| 257 } | 258 } | 
| 258 | 259 | 
| 259 void TryChromeDialogView::LinkClicked(views::Link* source, int event_flags) { | 260 void TryChromeDialogView::LinkClicked(views::Link* source, int event_flags) { | 
| 260   ::ShellExecuteW(NULL, L"open", kHelpCenterUrl, NULL, NULL, SW_SHOW); | 261   ::ShellExecuteW(NULL, L"open", kHelpCenterUrl, NULL, NULL, SW_SHOW); | 
| 261 } | 262 } | 
| OLD | NEW | 
|---|