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

Side by Side Diff: chrome/browser/ui/webui/options2/browser_options_handler2.cc

Issue 9959038: Removed ProfileSyncService::UIShouldDepictAuthInProgress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT. Created 8 years, 8 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/webui/ntp/new_tab_page_sync_handler.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) 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/ui/webui/options2/browser_options_handler2.h" 5 #include "chrome/browser/ui/webui/options2/browser_options_handler2.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" 34 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h"
35 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" 35 #include "chrome/browser/printing/cloud_print/cloud_print_url.h"
36 #include "chrome/browser/profiles/profile.h" 36 #include "chrome/browser/profiles/profile.h"
37 #include "chrome/browser/profiles/profile_info_cache.h" 37 #include "chrome/browser/profiles/profile_info_cache.h"
38 #include "chrome/browser/profiles/profile_info_util.h" 38 #include "chrome/browser/profiles/profile_info_util.h"
39 #include "chrome/browser/profiles/profile_manager.h" 39 #include "chrome/browser/profiles/profile_manager.h"
40 #include "chrome/browser/search_engines/template_url.h" 40 #include "chrome/browser/search_engines/template_url.h"
41 #include "chrome/browser/search_engines/template_url_service.h" 41 #include "chrome/browser/search_engines/template_url_service.h"
42 #include "chrome/browser/search_engines/template_url_service_factory.h" 42 #include "chrome/browser/search_engines/template_url_service_factory.h"
43 #include "chrome/browser/service/service_process_control.h" 43 #include "chrome/browser/service/service_process_control.h"
44 #include "chrome/browser/signin/signin_manager.h"
45 #include "chrome/browser/signin/signin_manager_factory.h"
44 #include "chrome/browser/sync/profile_sync_service.h" 46 #include "chrome/browser/sync/profile_sync_service.h"
45 #include "chrome/browser/sync/profile_sync_service_factory.h" 47 #include "chrome/browser/sync/profile_sync_service_factory.h"
46 #include "chrome/browser/sync/sync_ui_util.h" 48 #include "chrome/browser/sync/sync_ui_util.h"
47 #include "chrome/browser/themes/theme_service.h" 49 #include "chrome/browser/themes/theme_service.h"
48 #include "chrome/browser/themes/theme_service_factory.h" 50 #include "chrome/browser/themes/theme_service_factory.h"
49 #include "chrome/browser/ui/options/options_util.h" 51 #include "chrome/browser/ui/options/options_util.h"
50 #include "chrome/browser/ui/webui/favicon_source.h" 52 #include "chrome/browser/ui/webui/favicon_source.h"
51 #include "chrome/browser/ui/webui/web_ui_util.h" 53 #include "chrome/browser/ui/webui/web_ui_util.h"
52 #include "chrome/common/chrome_constants.h" 54 #include "chrome/common/chrome_constants.h"
53 #include "chrome/common/chrome_notification_types.h" 55 #include "chrome/common/chrome_notification_types.h"
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 sync_status->SetBoolean("syncSystemEnabled", !!service); 1011 sync_status->SetBoolean("syncSystemEnabled", !!service);
1010 if (!service) 1012 if (!service)
1011 return sync_status; 1013 return sync_status;
1012 1014
1013 sync_status->SetBoolean("setupCompleted", 1015 sync_status->SetBoolean("setupCompleted",
1014 service->HasSyncSetupCompleted()); 1016 service->HasSyncSetupCompleted());
1015 sync_status->SetBoolean("setupInProgress", service->FirstSetupInProgress()); 1017 sync_status->SetBoolean("setupInProgress", service->FirstSetupInProgress());
1016 1018
1017 string16 status_label; 1019 string16 status_label;
1018 string16 link_label; 1020 string16 link_label;
1021 SigninManager* signin = SigninManagerFactory::GetForProfile(
1022 Profile::FromWebUI(web_ui()));
1023
1019 bool status_has_error = sync_ui_util::GetStatusLabels( 1024 bool status_has_error = sync_ui_util::GetStatusLabels(
1020 service, sync_ui_util::WITH_HTML, &status_label, &link_label) == 1025 service, *signin, sync_ui_util::WITH_HTML, &status_label, &link_label) ==
1021 sync_ui_util::SYNC_ERROR; 1026 sync_ui_util::SYNC_ERROR;
1022 sync_status->SetString("statusText", status_label); 1027 sync_status->SetString("statusText", status_label);
1023 sync_status->SetString("actionLinkText", link_label); 1028 sync_status->SetString("actionLinkText", link_label);
1024 sync_status->SetBoolean("hasError", status_has_error); 1029 sync_status->SetBoolean("hasError", status_has_error);
1025 1030
1026 sync_status->SetBoolean("managed", service->IsManaged()); 1031 sync_status->SetBoolean("managed", service->IsManaged());
1027 sync_status->SetBoolean("hasUnrecoverableError", 1032 sync_status->SetBoolean("hasUnrecoverableError",
1028 service->unrecoverable_error_detected()); 1033 service->unrecoverable_error_detected());
1029 sync_status->SetBoolean("autoLoginVisible", 1034 sync_status->SetBoolean("autoLoginVisible",
1030 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAutologin) && 1035 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAutologin) &&
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 } 1419 }
1415 1420
1416 void BrowserOptionsHandler::SetupSSLConfigSettings() { 1421 void BrowserOptionsHandler::SetupSSLConfigSettings() {
1417 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); 1422 base::FundamentalValue checked(rev_checking_enabled_.GetValue());
1418 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); 1423 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged());
1419 web_ui()->CallJavascriptFunction( 1424 web_ui()->CallJavascriptFunction(
1420 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); 1425 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled);
1421 } 1426 }
1422 1427
1423 } // namespace options2 1428 } // namespace options2
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698