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

Side by Side Diff: chrome/browser/views/chrome_views_delegate.cc

Issue 1664001: Fixes possible crash if the window hosting a menu was closed while the (Closed)
Patch Set: Incorporated review feedback Created 10 years, 8 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
« no previous file with comments | « chrome/browser/views/chrome_views_delegate.h ('k') | views/controls/button/menu_button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/views/chrome_views_delegate.h" 5 #include "chrome/browser/views/chrome_views_delegate.h"
6 6
7 #include "app/clipboard/clipboard.h" 7 #include "app/clipboard/clipboard.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return dictionary && dictionary->GetBoolean(L"maximized", maximized) && 74 return dictionary && dictionary->GetBoolean(L"maximized", maximized) &&
75 maximized; 75 maximized;
76 } 76 }
77 77
78 #if defined(OS_WIN) 78 #if defined(OS_WIN)
79 HICON ChromeViewsDelegate::GetDefaultWindowIcon() const { 79 HICON ChromeViewsDelegate::GetDefaultWindowIcon() const {
80 return LoadIcon(GetModuleHandle(chrome::kBrowserResourcesDll), 80 return LoadIcon(GetModuleHandle(chrome::kBrowserResourcesDll),
81 MAKEINTRESOURCE(IDR_MAINFRAME)); 81 MAKEINTRESOURCE(IDR_MAINFRAME));
82 } 82 }
83 #endif 83 #endif
84
85 void ChromeViewsDelegate::AddRef() {
86 g_browser_process->AddRefModule();
87 }
88
89 void ChromeViewsDelegate::ReleaseRef() {
90 g_browser_process->ReleaseModule();
91 }
OLDNEW
« no previous file with comments | « chrome/browser/views/chrome_views_delegate.h ('k') | views/controls/button/menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698