OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/profiles/profile_reset_bubble_view.h" | 5 #include "chrome/browser/ui/views/profiles/profile_reset_bubble_view.h" |
6 | 6 |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/profile_resetter/profile_reset_global_error.h" | 8 #include "chrome/browser/profile_resetter/profile_reset_global_error.h" |
9 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" | 9 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" |
10 #include "chrome/browser/ui/global_error/global_error_service.h" | 10 #include "chrome/browser/ui/global_error/global_error_service.h" |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 SetupLayoutManager(controls_.report_settings_checkbox->checked()); | 416 SetupLayoutManager(controls_.report_settings_checkbox->checked()); |
417 SizeToContents(); | 417 SizeToContents(); |
418 } | 418 } |
419 } | 419 } |
420 | 420 |
421 void ProfileResetBubbleView::LinkClicked(views::Link* source, int flags) { | 421 void ProfileResetBubbleView::LinkClicked(views::Link* source, int flags) { |
422 content::RecordAction( | 422 content::RecordAction( |
423 base::UserMetricsAction("SettingsResetBubble.LearnMore")); | 423 base::UserMetricsAction("SettingsResetBubble.LearnMore")); |
424 navigator_->OpenURL(content::OpenURLParams( | 424 navigator_->OpenURL(content::OpenURLParams( |
425 GURL(chrome::kResetProfileSettingsLearnMoreURL), content::Referrer(), | 425 GURL(chrome::kResetProfileSettingsLearnMoreURL), content::Referrer(), |
426 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); | 426 NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, false)); |
427 } | 427 } |
428 | 428 |
429 void ProfileResetBubbleView::CloseBubbleView() { | 429 void ProfileResetBubbleView::CloseBubbleView() { |
430 resetting_ = false; | 430 resetting_ = false; |
431 GetWidget()->Close(); | 431 GetWidget()->Close(); |
432 } | 432 } |
433 | 433 |
434 void ProfileResetBubbleView::UpdateFeedbackDetails() { | 434 void ProfileResetBubbleView::UpdateFeedbackDetails() { |
435 if (show_help_pane_) | 435 if (show_help_pane_) |
436 SetupLayoutManager(controls_.report_settings_checkbox->checked()); | 436 SetupLayoutManager(controls_.report_settings_checkbox->checked()); |
437 } | 437 } |
438 | 438 |
439 bool IsProfileResetBubbleSupported() { | 439 bool IsProfileResetBubbleSupported() { |
440 return true; | 440 return true; |
441 } | 441 } |
442 | 442 |
443 GlobalErrorBubbleViewBase* ShowProfileResetBubble( | 443 GlobalErrorBubbleViewBase* ShowProfileResetBubble( |
444 const base::WeakPtr<ProfileResetGlobalError>& global_error, | 444 const base::WeakPtr<ProfileResetGlobalError>& global_error, |
445 Browser* browser) { | 445 Browser* browser) { |
446 return ProfileResetBubbleView::ShowBubble(global_error, browser); | 446 return ProfileResetBubbleView::ShowBubble(global_error, browser); |
447 } | 447 } |
OLD | NEW |