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

Side by Side Diff: chrome/browser/ui/cocoa/login_prompt_cocoa.mm

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 (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 #import "chrome/browser/ui/cocoa/login_prompt_cocoa.h" 5 #import "chrome/browser/ui/cocoa/login_prompt_cocoa.h"
6 6
7 #include "base/mac/bundle_locations.h" 7 #include "base/mac/bundle_locations.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/tab_contents/tab_util.h" 14 #include "chrome/browser/tab_contents/tab_util.h"
15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h" 15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h"
16 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" 16 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
17 #include "chrome/browser/ui/login/login_prompt.h" 17 #include "chrome/browser/ui/login/login_prompt.h"
18 #include "components/password_manager/core/browser/login_model.h" 18 #include "components/password_manager/core/browser/login_model.h"
19 #include "components/password_manager/core/browser/password_manager.h" 19 #include "components/password_manager/core/browser/password_manager.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "grit/generated_resources.h"
23 #include "net/url_request/url_request.h" 22 #include "net/url_request/url_request.h"
24 #include "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutT weaker.h" 23 #include "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutT weaker.h"
25 #include "ui/base/l10n/l10n_util.h"
26 24
27 using autofill::PasswordForm; 25 using autofill::PasswordForm;
28 using content::BrowserThread; 26 using content::BrowserThread;
29 using content::WebContents; 27 using content::WebContents;
30 28
31 // ---------------------------------------------------------------------------- 29 // ----------------------------------------------------------------------------
32 // LoginHandlerMac 30 // LoginHandlerMac
33 31
34 // This class simply forwards the authentication from the LoginView (on 32 // This class simply forwards the authentication from the LoginView (on
35 // the UI thread) to the net::URLRequest (on the I/O thread). 33 // the UI thread) to the net::URLRequest (on the I/O thread).
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Resize the text field. 184 // Resize the text field.
187 CGFloat windowDelta = [GTMUILocalizerAndLayoutTweaker 185 CGFloat windowDelta = [GTMUILocalizerAndLayoutTweaker
188 sizeToFitFixedWidthTextField:explanationField_]; 186 sizeToFitFixedWidthTextField:explanationField_];
189 187
190 NSRect newFrame = [[self window] frame]; 188 NSRect newFrame = [[self window] frame];
191 newFrame.size.height += windowDelta; 189 newFrame.size.height += windowDelta;
192 [[self window] setFrame:newFrame display:NO]; 190 [[self window] setFrame:newFrame display:NO];
193 } 191 }
194 192
195 @end 193 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698