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

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

Issue 3792007: Fix some problems with the ENTER_PASSPHRASE state in sync setup.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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/sync/sync_ui_util.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/options/content_page_view.h" 5 #include "chrome/browser/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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 IDS_CONFIRM_STOP_SYNCING_DIALOG_WIDTH_CHARS, 138 IDS_CONFIRM_STOP_SYNCING_DIALOG_WIDTH_CHARS,
139 IDS_CONFIRM_STOP_SYNCING_DIALOG_HEIGHT_LINES))); 139 IDS_CONFIRM_STOP_SYNCING_DIALOG_HEIGHT_LINES)));
140 return; 140 return;
141 } else { 141 } else {
142 sync_service_->ShowLoginDialog(GetWindow()->GetNativeWindow()); 142 sync_service_->ShowLoginDialog(GetWindow()->GetNativeWindow());
143 ProfileSyncService::SyncEvent(ProfileSyncService::START_FROM_OPTIONS); 143 ProfileSyncService::SyncEvent(ProfileSyncService::START_FROM_OPTIONS);
144 } 144 }
145 } else if (sender == sync_customize_button_) { 145 } else if (sender == sync_customize_button_) {
146 // sync_customize_button_ should be invisible if sync is not yet set up. 146 // sync_customize_button_ should be invisible if sync is not yet set up.
147 DCHECK(sync_service_->HasSyncSetupCompleted()); 147 DCHECK(sync_service_->HasSyncSetupCompleted());
148 sync_service_->ShowChooseDataTypes(GetWindow()->GetNativeWindow()); 148 sync_service_->ShowConfigure(GetWindow()->GetNativeWindow());
149 } 149 }
150 } 150 }
151 151
152 void ContentPageView::LinkActivated(views::Link* source, int event_flags) { 152 void ContentPageView::LinkActivated(views::Link* source, int event_flags) {
153 if (source == themes_gallery_link_) { 153 if (source == themes_gallery_link_) {
154 UserMetricsRecordAction(UserMetricsAction("Options_ThemesGallery"), 154 UserMetricsRecordAction(UserMetricsAction("Options_ThemesGallery"),
155 profile()->GetPrefs()); 155 profile()->GetPrefs());
156 BrowserList::GetLastActive()->OpenThemeGalleryTabAndActivate(); 156 BrowserList::GetLastActive()->OpenThemeGalleryTabAndActivate();
157 return; 157 return;
158 } 158 }
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 sync_action_link_->SetEnabled(!managed); 487 sync_action_link_->SetEnabled(!managed);
488 488
489 if (status_has_error) { 489 if (status_has_error) {
490 sync_status_label_->set_background(CreateErrorBackground()); 490 sync_status_label_->set_background(CreateErrorBackground());
491 sync_action_link_->set_background(CreateErrorBackground()); 491 sync_action_link_->set_background(CreateErrorBackground());
492 } else { 492 } else {
493 sync_status_label_->set_background(NULL); 493 sync_status_label_->set_background(NULL);
494 sync_action_link_->set_background(NULL); 494 sync_action_link_->set_background(NULL);
495 } 495 }
496 } 496 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698