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

Side by Side Diff: chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/cocoa/apps/quit_with_apps_controller_mac.h" 5 #include "chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h"
6 6
7 #include "apps/app_window.h" 7 #include "apps/app_window.h"
8 #include "apps/app_window_registry.h" 8 #include "apps/app_window_registry.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
11 #include "base/prefs/pref_registry_simple.h" 11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/notifications/notification.h" 16 #include "chrome/browser/notifications/notification.h"
17 #include "chrome/browser/notifications/notification_ui_manager.h" 17 #include "chrome/browser/notifications/notification_ui_manager.h"
18 #include "chrome/browser/profiles/profile_manager.h" 18 #include "chrome/browser/profiles/profile_manager.h"
19 #include "chrome/browser/ui/browser_iterator.h" 19 #include "chrome/browser/ui/browser_iterator.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "chrome/grit/chromium_strings.h"
23 #include "chrome/grit/generated_resources.h"
24 #include "chrome/grit/google_chrome_strings.h"
22 #include "extensions/browser/app_window/native_app_window.h" 25 #include "extensions/browser/app_window/native_app_window.h"
23 #include "extensions/common/extension.h" 26 #include "extensions/common/extension.h"
24 #include "grit/chrome_unscaled_resources.h" 27 #include "grit/chrome_unscaled_resources.h"
25 #include "grit/chromium_strings.h"
26 #include "grit/generated_resources.h"
27 #include "grit/google_chrome_strings.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 #include "ui/base/l10n/l10n_util_mac.h" 29 #include "ui/base/l10n/l10n_util_mac.h"
30 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
31 31
32 const char kQuitWithAppsOriginUrl[] = "chrome://quit-with-apps"; 32 const char kQuitWithAppsOriginUrl[] = "chrome://quit-with-apps";
33 const int kQuitAllAppsButtonIndex = 0; 33 const int kQuitAllAppsButtonIndex = 0;
34 const int kDontShowAgainButtonIndex = 1; 34 const int kDontShowAgainButtonIndex = 1;
35 35
36 const char QuitWithAppsController::kQuitWithAppsNotificationID[] = 36 const char QuitWithAppsController::kQuitWithAppsNotificationID[] =
37 "quit-with-apps"; 37 "quit-with-apps";
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Always return false, the notification UI can be used to quit all apps which 140 // Always return false, the notification UI can be used to quit all apps which
141 // will cause Chrome to quit. 141 // will cause Chrome to quit.
142 return false; 142 return false;
143 } 143 }
144 144
145 // static 145 // static
146 void QuitWithAppsController::RegisterPrefs(PrefRegistrySimple* registry) { 146 void QuitWithAppsController::RegisterPrefs(PrefRegistrySimple* registry) {
147 registry->RegisterBooleanPref(prefs::kNotifyWhenAppsKeepChromeAlive, true); 147 registry->RegisterBooleanPref(prefs::kNotifyWhenAppsKeepChromeAlive, true);
148 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698