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/ui/views/options/content_page_view.h" | 5 #include "chrome/browser/ui/views/options/content_page_view.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shlobj.h> | 8 #include <shlobj.h> |
9 #include <vsstyle.h> | 9 #include <vsstyle.h> |
10 #include <vssym32.h> | 10 #include <vssym32.h> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 GetWindow()->GetNativeWindow(), | 121 GetWindow()->GetNativeWindow(), |
122 gfx::Rect(), | 122 gfx::Rect(), |
123 new ImporterView(profile(), importer::ALL))->Show(); | 123 new ImporterView(profile(), importer::ALL))->Show(); |
124 } else if (sender == sync_start_stop_button_) { | 124 } else if (sender == sync_start_stop_button_) { |
125 DCHECK(sync_service_ && !sync_service_->IsManaged()); | 125 DCHECK(sync_service_ && !sync_service_->IsManaged()); |
126 | 126 |
127 if (sync_service_->HasSyncSetupCompleted()) { | 127 if (sync_service_->HasSyncSetupCompleted()) { |
128 ConfirmMessageBoxDialog::RunWithCustomConfiguration( | 128 ConfirmMessageBoxDialog::RunWithCustomConfiguration( |
129 GetWindow()->GetNativeWindow(), | 129 GetWindow()->GetNativeWindow(), |
130 this, | 130 this, |
131 UTF16ToWide(l10n_util::GetStringFUTF16( | 131 UTF16ToWide(l10n_util::GetStringUTF16( |
132 IDS_SYNC_STOP_SYNCING_EXPLANATION_LABEL, | 132 IDS_SYNC_STOP_SYNCING_EXPLANATION_LABEL)), |
133 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))), | |
134 UTF16ToWide(l10n_util::GetStringUTF16( | 133 UTF16ToWide(l10n_util::GetStringUTF16( |
135 IDS_SYNC_STOP_SYNCING_DIALOG_TITLE)), | 134 IDS_SYNC_STOP_SYNCING_DIALOG_TITLE)), |
136 UTF16ToWide(l10n_util::GetStringUTF16( | 135 UTF16ToWide(l10n_util::GetStringUTF16( |
137 IDS_SYNC_STOP_SYNCING_CONFIRM_BUTTON_LABEL)), | 136 IDS_SYNC_STOP_SYNCING_CONFIRM_BUTTON_LABEL)), |
138 UTF16ToWide(l10n_util::GetStringUTF16(IDS_CANCEL)), | 137 UTF16ToWide(l10n_util::GetStringUTF16(IDS_CANCEL)), |
139 gfx::Size(views::Window::GetLocalizedContentsSize( | 138 gfx::Size(views::Window::GetLocalizedContentsSize( |
140 IDS_CONFIRM_STOP_SYNCING_DIALOG_WIDTH_CHARS, | 139 IDS_CONFIRM_STOP_SYNCING_DIALOG_WIDTH_CHARS, |
141 IDS_CONFIRM_STOP_SYNCING_DIALOG_HEIGHT_LINES))); | 140 IDS_CONFIRM_STOP_SYNCING_DIALOG_HEIGHT_LINES))); |
142 return; | 141 return; |
143 } else { | 142 } else { |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 sync_action_link_->SetEnabled(!managed); | 498 sync_action_link_->SetEnabled(!managed); |
500 | 499 |
501 if (status_has_error) { | 500 if (status_has_error) { |
502 sync_status_label_->set_background(CreateErrorBackground()); | 501 sync_status_label_->set_background(CreateErrorBackground()); |
503 sync_action_link_->set_background(CreateErrorBackground()); | 502 sync_action_link_->set_background(CreateErrorBackground()); |
504 } else { | 503 } else { |
505 sync_status_label_->set_background(NULL); | 504 sync_status_label_->set_background(NULL); |
506 sync_action_link_->set_background(NULL); | 505 sync_action_link_->set_background(NULL); |
507 } | 506 } |
508 } | 507 } |
OLD | NEW |