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

Side by Side Diff: chrome/browser/background/background_mode_manager_win.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 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 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 "base/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 15 matching lines...) Expand all
26 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserDataDir)) 26 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserDataDir))
27 return; 27 return;
28 BrowserThread::PostTask( 28 BrowserThread::PostTask(
29 BrowserThread::FILE, FROM_HERE, 29 BrowserThread::FILE, FROM_HERE,
30 should_launch ? 30 should_launch ?
31 base::Bind(auto_launch_util::EnableBackgroundStartAtLogin) : 31 base::Bind(auto_launch_util::EnableBackgroundStartAtLogin) :
32 base::Bind(auto_launch_util::DisableBackgroundStartAtLogin)); 32 base::Bind(auto_launch_util::DisableBackgroundStartAtLogin));
33 } 33 }
34 34
35 void BackgroundModeManager::DisplayAppInstalledNotification( 35 void BackgroundModeManager::DisplayAppInstalledNotification(
36 const Extension* extension) { 36 const extensions::Extension* extension) {
37 // Create a status tray notification balloon explaining to the user that 37 // Create a status tray notification balloon explaining to the user that
38 // a background app has been installed. 38 // a background app has been installed.
39 CreateStatusTrayIcon(); 39 CreateStatusTrayIcon();
40 status_icon_->DisplayBalloon( 40 status_icon_->DisplayBalloon(
41 SkBitmap(), 41 SkBitmap(),
42 l10n_util::GetStringUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_TITLE), 42 l10n_util::GetStringUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_TITLE),
43 l10n_util::GetStringFUTF16( 43 l10n_util::GetStringFUTF16(
44 IDS_BACKGROUND_APP_INSTALLED_BALLOON_BODY, 44 IDS_BACKGROUND_APP_INSTALLED_BALLOON_BODY,
45 UTF8ToUTF16(extension->name()), 45 UTF8ToUTF16(extension->name()),
46 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); 46 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
47 } 47 }
48 48
49 string16 BackgroundModeManager::GetPreferencesMenuLabel() { 49 string16 BackgroundModeManager::GetPreferencesMenuLabel() {
50 return l10n_util::GetStringUTF16(IDS_OPTIONS); 50 return l10n_util::GetStringUTF16(IDS_OPTIONS);
51 } 51 }
OLDNEW
« no previous file with comments | « chrome/browser/background/background_mode_manager_mac.mm ('k') | chrome/browser/bookmarks/bookmark_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698