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/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/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "ui/views/controls/image_view.h" | 29 #include "ui/views/controls/image_view.h" |
30 #include "ui/views/controls/link.h" | 30 #include "ui/views/controls/link.h" |
31 #include "ui/views/controls/separator.h" | 31 #include "ui/views/controls/separator.h" |
32 #include "ui/views/layout/grid_layout.h" | 32 #include "ui/views/layout/grid_layout.h" |
33 #include "ui/views/layout/layout_constants.h" | 33 #include "ui/views/layout/layout_constants.h" |
34 #include "ui/views/widget/widget.h" | 34 #include "ui/views/widget/widget.h" |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 const wchar_t kHelpCenterUrl[] = | 38 const wchar_t kHelpCenterUrl[] = |
39 L"https://www.google.com/support/chrome/bin/answer.py?answer=150752"; | 39 L"https://support.google.com/chrome/answer/150752"; |
40 | 40 |
41 enum ButtonTags { | 41 enum ButtonTags { |
42 BT_NONE, | 42 BT_NONE, |
43 BT_CLOSE_BUTTON, | 43 BT_CLOSE_BUTTON, |
44 BT_OK_BUTTON, | 44 BT_OK_BUTTON, |
45 BT_TRY_IT_RADIO, | 45 BT_TRY_IT_RADIO, |
46 BT_DONT_BUG_RADIO | 46 BT_DONT_BUG_RADIO |
47 }; | 47 }; |
48 | 48 |
49 const int kRadioGroupID = 1; | 49 const int kRadioGroupID = 1; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 result_ = TRY_CHROME_AS_DEFAULT; | 358 result_ = TRY_CHROME_AS_DEFAULT; |
359 } | 359 } |
360 | 360 |
361 popup_->Close(); | 361 popup_->Close(); |
362 base::MessageLoop::current()->Quit(); | 362 base::MessageLoop::current()->Quit(); |
363 } | 363 } |
364 | 364 |
365 void TryChromeDialogView::LinkClicked(views::Link* source, int event_flags) { | 365 void TryChromeDialogView::LinkClicked(views::Link* source, int event_flags) { |
366 ::ShellExecuteW(NULL, L"open", kHelpCenterUrl, NULL, NULL, SW_SHOW); | 366 ::ShellExecuteW(NULL, L"open", kHelpCenterUrl, NULL, NULL, SW_SHOW); |
367 } | 367 } |
OLD | NEW |