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

Side by Side Diff: components/sessions/content/content_serialized_navigation_driver.cc

Issue 2384403005: Fix flaky test ContentSerializedNavigationBuilderTest.ToNavigationEntry (Closed)
Patch Set: Address feedback Created 4 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 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 "components/sessions/content/content_serialized_navigation_driver.h" 5 #include "components/sessions/content/content_serialized_navigation_driver.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "components/sessions/core/serialized_navigation_entry.h" 9 #include "components/sessions/core/serialized_navigation_entry.h"
10 #include "content/public/common/page_state.h" 10 #include "content/public/common/page_state.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 DCHECK(!extended_info_handler_map_.count(key)); 155 DCHECK(!extended_info_handler_map_.count(key));
156 DCHECK(handler.get()); 156 DCHECK(handler.get());
157 extended_info_handler_map_[key] = std::move(handler); 157 extended_info_handler_map_[key] = std::move(handler);
158 } 158 }
159 159
160 const ContentSerializedNavigationDriver::ExtendedInfoHandlerMap& 160 const ContentSerializedNavigationDriver::ExtendedInfoHandlerMap&
161 ContentSerializedNavigationDriver::GetAllExtendedInfoHandlers() const { 161 ContentSerializedNavigationDriver::GetAllExtendedInfoHandlers() const {
162 return extended_info_handler_map_; 162 return extended_info_handler_map_;
163 } 163 }
164 164
165 void ContentSerializedNavigationDriver::
166 RemoveAllExtendedInfoHandlersForTesting() {
167 extended_info_handler_map_.clear();
168 }
169
165 } // namespace sessions 170 } // namespace sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698