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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 1497973002: This CL replaces e-mail with AccountId in wallpaper manager code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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/options/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 Profile* profile = Profile::FromWebUI(web_ui()); 1020 Profile* profile = Profile::FromWebUI(web_ui());
1021 OnAccountPictureManagedChanged( 1021 OnAccountPictureManagedChanged(
1022 policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile) 1022 policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile)
1023 ->policy_service() 1023 ->policy_service()
1024 ->GetPolicies(policy::PolicyNamespace(policy::POLICY_DOMAIN_CHROME, 1024 ->GetPolicies(policy::PolicyNamespace(policy::POLICY_DOMAIN_CHROME,
1025 std::string())) 1025 std::string()))
1026 .Get(policy::key::kUserAvatarImage)); 1026 .Get(policy::key::kUserAvatarImage));
1027 1027
1028 OnWallpaperManagedChanged( 1028 OnWallpaperManagedChanged(
1029 chromeos::WallpaperManager::Get()->IsPolicyControlled( 1029 chromeos::WallpaperManager::Get()->IsPolicyControlled(
1030 user_manager::UserManager::Get()->GetActiveUser()->email())); 1030 user_manager::UserManager::Get()->GetActiveUser()->GetAccountId()));
1031 1031
1032 policy::ConsumerManagementService* consumer_management = 1032 policy::ConsumerManagementService* consumer_management =
1033 g_browser_process->platform_part()->browser_policy_connector_chromeos()-> 1033 g_browser_process->platform_part()->browser_policy_connector_chromeos()->
1034 GetConsumerManagementService(); 1034 GetConsumerManagementService();
1035 if (consumer_management) { 1035 if (consumer_management) {
1036 OnConsumerManagementStatusChanged(); 1036 OnConsumerManagementStatusChanged();
1037 consumer_management->AddObserver(this); 1037 consumer_management->AddObserver(this);
1038 } 1038 }
1039 #endif 1039 #endif
1040 } 1040 }
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 2143
2144 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { 2144 bool BrowserOptionsHandler::IsDeviceOwnerProfile() {
2145 #if defined(OS_CHROMEOS) 2145 #if defined(OS_CHROMEOS)
2146 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); 2146 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui()));
2147 #else 2147 #else
2148 return true; 2148 return true;
2149 #endif 2149 #endif
2150 } 2150 }
2151 2151
2152 } // namespace options 2152 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698