Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: chrome/browser/ui/views/options/content_page_view.cc

Issue 6371007: String changes for sync dialog suggested by Brian. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/options/content_page_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/options/content_page_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698