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

Side by Side Diff: chrome/browser/ui/browser_commands.cc

Issue 658073004: Rewrites SerializedNavigationEntry to not have any //content member variables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 2 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/ui/browser_commands.h" 5 #include "chrome/browser/ui/browser_commands.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "components/web_modal/popup_manager.h" 63 #include "components/web_modal/popup_manager.h"
64 #include "content/public/browser/devtools_agent_host.h" 64 #include "content/public/browser/devtools_agent_host.h"
65 #include "content/public/browser/navigation_controller.h" 65 #include "content/public/browser/navigation_controller.h"
66 #include "content/public/browser/navigation_entry.h" 66 #include "content/public/browser/navigation_entry.h"
67 #include "content/public/browser/notification_service.h" 67 #include "content/public/browser/notification_service.h"
68 #include "content/public/browser/page_navigator.h" 68 #include "content/public/browser/page_navigator.h"
69 #include "content/public/browser/render_view_host.h" 69 #include "content/public/browser/render_view_host.h"
70 #include "content/public/browser/render_widget_host_view.h" 70 #include "content/public/browser/render_widget_host_view.h"
71 #include "content/public/browser/user_metrics.h" 71 #include "content/public/browser/user_metrics.h"
72 #include "content/public/browser/web_contents.h" 72 #include "content/public/browser/web_contents.h"
73 #include "content/public/common/page_state.h"
73 #include "content/public/common/renderer_preferences.h" 74 #include "content/public/common/renderer_preferences.h"
74 #include "content/public/common/url_constants.h" 75 #include "content/public/common/url_constants.h"
75 #include "content/public/common/url_utils.h" 76 #include "content/public/common/url_utils.h"
76 #include "content/public/common/user_agent.h" 77 #include "content/public/common/user_agent.h"
77 #include "net/base/escape.h" 78 #include "net/base/escape.h"
78 #include "ui/events/keycodes/keyboard_codes.h" 79 #include "ui/events/keycodes/keyboard_codes.h"
79 80
80 #if defined(OS_WIN) 81 #if defined(OS_WIN)
81 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" 82 #include "chrome/browser/ui/metro_pin_tab_helper_win.h"
82 #endif 83 #endif
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 browser->host_desktop_type())); 1288 browser->host_desktop_type()));
1288 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1289 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1289 1290
1290 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1291 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1291 contents->GetRenderViewHost()->SyncRendererPrefs(); 1292 contents->GetRenderViewHost()->SyncRendererPrefs();
1292 app_browser->window()->Show(); 1293 app_browser->window()->Show();
1293 } 1294 }
1294 #endif // defined(ENABLE_EXTENSIONS) 1295 #endif // defined(ENABLE_EXTENSIONS)
1295 1296
1296 } // namespace chrome 1297 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sessions_helper.cc ('k') | components/sessions/serialized_navigation_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698