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

Unified Diff: chrome/browser/background/background_mode_manager.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 2 Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/background/background_mode_manager.cc
diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
index 0a3bdd83460062c57e50da6ef3a3a0afd1bd7748..ab770d0af784464bfb5f9218920a08e1aa07d6e9 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -40,6 +40,8 @@
#include "ui/base/resource/resource_bundle.h"
using content::UserMetricsAction;
+using extensions::Extension;
+using extensions::UpdatedExtensionPermissionsInfo;
BackgroundModeManager::BackgroundModeData::BackgroundModeData(
int command_id,
@@ -78,7 +80,8 @@ void BackgroundModeManager::BackgroundModeData::ExecuteCommand(int item) {
break;
default:
// Launch the app associated with this item.
- const Extension* extension = applications_->GetExtension(item);
+ const Extension* extension = applications_->
+ GetExtension(item);
BackgroundModeManager::LaunchBackgroundApplication(profile_, extension);
break;
}
@@ -107,7 +110,8 @@ void BackgroundModeManager::BackgroundModeData::BuildProfileMenu(
menu->AddItemWithStringId(IDC_MinimumLabelValue,
IDS_BACKGROUND_APP_NOT_INSTALLED);
} else {
- for (ExtensionList::const_iterator cursor = applications_->begin();
+ for (extensions::ExtensionList::const_iterator cursor =
+ applications_->begin();
cursor != applications_->end();
++cursor, ++position) {
const SkBitmap* icon = applications_->GetIcon(*cursor);
@@ -306,7 +310,7 @@ void BackgroundModeManager::Observe(
break;
case chrome::NOTIFICATION_EXTENSION_PERMISSIONS_UPDATED: {
UpdatedExtensionPermissionsInfo* info =
- content::Details<UpdatedExtensionPermissionsInfo>(details).ptr();
+ content::Details<UpdatedExtensionPermissionsInfo>( details).ptr();
sky 2012/05/14 15:00:07 '( d' -> '(d'
mitchellwrosen 2012/05/18 22:53:16 Done.
if (info->permissions->HasAPIPermission(
ExtensionAPIPermission::kBackground) &&
info->reason == UpdatedExtensionPermissionsInfo::ADDED) {

Powered by Google App Engine
This is Rietveld 408576698