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

Side by Side Diff: chrome/browser/ui/apps/chrome_app_delegate.cc

Issue 535373002: Move extension/app default icon into src/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: icon_image 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
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/apps/chrome_app_delegate.h" 5 #include "chrome/browser/ui/apps/chrome_app_delegate.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 10 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
11 #include "chrome/browser/favicon/favicon_tab_helper.h" 11 #include "chrome/browser/favicon/favicon_tab_helper.h"
12 #include "chrome/browser/file_select_helper.h" 12 #include "chrome/browser/file_select_helper.h"
13 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 13 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
14 #include "chrome/browser/platform_util.h" 14 #include "chrome/browser/platform_util.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/shell_integration.h" 16 #include "chrome/browser/shell_integration.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_dialogs.h" 18 #include "chrome/browser/ui/browser_dialogs.h"
19 #include "chrome/browser/ui/browser_tabstrip.h" 19 #include "chrome/browser/ui/browser_tabstrip.h"
20 #include "chrome/browser/ui/browser_window.h" 20 #include "chrome/browser/ui/browser_window.h"
21 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 21 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
22 #include "chrome/browser/ui/web_contents_sizer.h" 22 #include "chrome/browser/ui/web_contents_sizer.h"
23 #include "chrome/common/extensions/chrome_extension_messages.h" 23 #include "chrome/common/extensions/chrome_extension_messages.h"
24 #include "content/public/browser/browser_context.h" 24 #include "content/public/browser/browser_context.h"
25 #include "content/public/browser/notification_service.h" 25 #include "content/public/browser/notification_service.h"
26 #include "content/public/browser/render_view_host.h" 26 #include "content/public/browser/render_view_host.h"
27 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
28 #include "content/public/browser/web_contents_delegate.h" 28 #include "content/public/browser/web_contents_delegate.h"
29 #include "extensions/common/constants.h" 29 #include "extensions/common/constants.h"
30 #include "grit/theme_resources.h" 30 #include "extensions/grit/extensions_browser_resources.h"
31 #include "ui/base/resource/resource_bundle.h" 31 #include "ui/base/resource/resource_bundle.h"
32 32
33 #if defined(USE_ASH) 33 #if defined(USE_ASH)
34 #include "ash/shelf/shelf_constants.h" 34 #include "ash/shelf/shelf_constants.h"
35 #endif 35 #endif
36 36
37 #if defined(ENABLE_PRINTING) 37 #if defined(ENABLE_PRINTING)
38 #if defined(ENABLE_FULL_PRINTING) 38 #if defined(ENABLE_FULL_PRINTING)
39 #include "chrome/browser/printing/print_preview_message_handler.h" 39 #include "chrome/browser/printing/print_preview_message_handler.h"
40 #include "chrome/browser/printing/print_view_manager.h" 40 #include "chrome/browser/printing/print_view_manager.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 const content::NotificationDetails& details) { 277 const content::NotificationDetails& details) {
278 switch (type) { 278 switch (type) {
279 case chrome::NOTIFICATION_APP_TERMINATING: 279 case chrome::NOTIFICATION_APP_TERMINATING:
280 if (!terminating_callback_.is_null()) 280 if (!terminating_callback_.is_null())
281 terminating_callback_.Run(); 281 terminating_callback_.Run();
282 break; 282 break;
283 default: 283 default:
284 NOTREACHED() << "Received unexpected notification"; 284 NOTREACHED() << "Received unexpected notification";
285 } 285 }
286 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698