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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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 (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 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 if (gfx::ICCProfile::CachedProfilesNeedUpdate()) { 294 if (gfx::ICCProfile::CachedProfilesNeedUpdate()) {
295 BrowserThread::PostBlockingPoolTask( 295 BrowserThread::PostBlockingPoolTask(
296 FROM_HERE, 296 FROM_HERE,
297 base::Bind(&gfx::ICCProfile::UpdateCachedProfilesOnBackgroundThread)); 297 base::Bind(&gfx::ICCProfile::UpdateCachedProfilesOnBackgroundThread));
298 } 298 }
299 #endif 299 #endif
300 300
301 std::pair<RoutingIDWidgetMap::iterator, bool> result = 301 std::pair<RoutingIDWidgetMap::iterator, bool> result =
302 g_routing_id_widget_map.Get().insert(std::make_pair( 302 g_routing_id_widget_map.Get().insert(std::make_pair(
303 RenderWidgetHostID(process->GetID(), routing_id_), this)); 303 RenderWidgetHostID(process->GetID(), routing_id_), this));
304 CHECK(result.second) << "Inserting a duplicate item!"; 304 // Inserting a duplicate item!
305 CHECK(result.second);
305 process_->AddRoute(routing_id_, this); 306 process_->AddRoute(routing_id_, this);
306 307
307 // If we're initially visible, tell the process host that we're alive. 308 // If we're initially visible, tell the process host that we're alive.
308 // Otherwise we'll notify the process host when we are first shown. 309 // Otherwise we'll notify the process host when we are first shown.
309 if (!hidden) 310 if (!hidden)
310 process_->WidgetRestored(); 311 process_->WidgetRestored();
311 312
312 latency_tracker_.Initialize(routing_id_, GetProcess()->GetID()); 313 latency_tracker_.Initialize(routing_id_, GetProcess()->GetID());
313 314
314 input_router_.reset(new InputRouterImpl( 315 input_router_.reset(new InputRouterImpl(
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 // Note: We are using the origin URL provided by the sender here. It may be 2504 // Note: We are using the origin URL provided by the sender here. It may be
2504 // different from the receiver's. 2505 // different from the receiver's.
2505 file_system_file.url = 2506 file_system_file.url =
2506 GURL(storage::GetIsolatedFileSystemRootURIString( 2507 GURL(storage::GetIsolatedFileSystemRootURIString(
2507 file_system_url.origin(), filesystem_id, std::string()) 2508 file_system_url.origin(), filesystem_id, std::string())
2508 .append(register_name)); 2509 .append(register_name));
2509 } 2510 }
2510 } 2511 }
2511 2512
2512 } // namespace content 2513 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698