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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 1384
1385 void BrowserOptionsHandler::OnExtensionLoaded( 1385 void BrowserOptionsHandler::OnExtensionLoaded(
1386 content::BrowserContext* browser_context, 1386 content::BrowserContext* browser_context,
1387 const Extension* extension) { 1387 const Extension* extension) {
1388 SetupExtensionControlledIndicators(); 1388 SetupExtensionControlledIndicators();
1389 } 1389 }
1390 1390
1391 void BrowserOptionsHandler::OnExtensionUnloaded( 1391 void BrowserOptionsHandler::OnExtensionUnloaded(
1392 content::BrowserContext* browser_context, 1392 content::BrowserContext* browser_context,
1393 const Extension* extension, 1393 const Extension* extension,
1394 extensions::UnloadedExtensionInfo::Reason reason) { 1394 extensions::UnloadedExtensionReason reason) {
1395 SetupExtensionControlledIndicators(); 1395 SetupExtensionControlledIndicators();
1396 } 1396 }
1397 1397
1398 void BrowserOptionsHandler::Observe( 1398 void BrowserOptionsHandler::Observe(
1399 int type, 1399 int type,
1400 const content::NotificationSource& source, 1400 const content::NotificationSource& source,
1401 const content::NotificationDetails& details) { 1401 const content::NotificationDetails& details) {
1402 // Notifications are used to update the UI dynamically when settings change in 1402 // Notifications are used to update the UI dynamically when settings change in
1403 // the background. If the UI is currently being loaded, no dynamic updates are 1403 // the background. If the UI is currently being loaded, no dynamic updates are
1404 // possible (as the DOM and JS are not fully loaded) or necessary (as 1404 // possible (as the DOM and JS are not fully loaded) or necessary (as
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 2350
2351 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { 2351 bool BrowserOptionsHandler::IsDeviceOwnerProfile() {
2352 #if defined(OS_CHROMEOS) 2352 #if defined(OS_CHROMEOS)
2353 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); 2353 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui()));
2354 #else 2354 #else
2355 return true; 2355 return true;
2356 #endif 2356 #endif
2357 } 2357 }
2358 2358
2359 } // namespace options 2359 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.h ('k') | chrome/browser/ui/webui/options/font_settings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698