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

Side by Side Diff: chrome/browser/background_mode_manager.cc

Issue 5968009: Change extension unload notification to indicate updates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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
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 "app/l10n_util.h" 5 #include "app/l10n_util.h"
6 #include "app/resource_bundle.h" 6 #include "app/resource_bundle.h"
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 #endif 122 #endif
123 break; 123 break;
124 case NotificationType::EXTENSION_LOADED: 124 case NotificationType::EXTENSION_LOADED:
125 if (BackgroundApplicationListModel::IsBackgroundApp( 125 if (BackgroundApplicationListModel::IsBackgroundApp(
126 *Details<Extension>(details).ptr())) { 126 *Details<Extension>(details).ptr())) {
127 OnBackgroundAppLoaded(); 127 OnBackgroundAppLoaded();
128 } 128 }
129 break; 129 break;
130 case NotificationType::EXTENSION_UNLOADED: 130 case NotificationType::EXTENSION_UNLOADED:
131 if (BackgroundApplicationListModel::IsBackgroundApp( 131 if (BackgroundApplicationListModel::IsBackgroundApp(
132 *Details<Extension>(details).ptr())) { 132 *Details<UnloadedExtensionInfo>(details)->extension)) {
133 OnBackgroundAppUnloaded(); 133 OnBackgroundAppUnloaded();
134 } 134 }
135 break; 135 break;
136 case NotificationType::EXTENSION_INSTALLED: 136 case NotificationType::EXTENSION_INSTALLED:
137 if (BackgroundApplicationListModel::IsBackgroundApp( 137 if (BackgroundApplicationListModel::IsBackgroundApp(
138 *Details<Extension>(details).ptr())) { 138 *Details<Extension>(details).ptr())) {
139 OnBackgroundAppInstalled(); 139 OnBackgroundAppInstalled();
140 } 140 }
141 break; 141 break;
142 case NotificationType::EXTENSION_UNINSTALLED: 142 case NotificationType::EXTENSION_UNINSTALLED:
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 !command_line->HasSwitch(switches::kDisableExtensions); 370 !command_line->HasSwitch(switches::kDisableExtensions);
371 #if !defined(OS_WIN) 371 #if !defined(OS_WIN)
372 // BackgroundMode is enabled by default on windows. On other platforms, it 372 // BackgroundMode is enabled by default on windows. On other platforms, it
373 // is enabled via about:flags. 373 // is enabled via about:flags.
374 background_mode_enabled = background_mode_enabled && 374 background_mode_enabled = background_mode_enabled &&
375 command_line->HasSwitch(switches::kEnableBackgroundMode); 375 command_line->HasSwitch(switches::kEnableBackgroundMode);
376 #endif 376 #endif
377 377
378 return background_mode_enabled; 378 return background_mode_enabled;
379 } 379 }
380
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698