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

Side by Side Diff: chrome/browser/extensions/tab_helper.cc

Issue 2716493004: Renamed NavigationHandle::IsSamePage to NavigationHandle::IsSameDocument (Closed)
Patch Set: Rebased Created 3 years, 9 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 (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 "chrome/browser/extensions/tab_helper.h" 5 #include "chrome/browser/extensions/tab_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } else { 341 } else {
342 UpdateExtensionAppIcon( 342 UpdateExtensionAppIcon(
343 enabled_extensions.GetExtensionOrAppByURL( 343 enabled_extensions.GetExtensionOrAppByURL(
344 navigation_handle->GetURL())); 344 navigation_handle->GetURL()));
345 } 345 }
346 } else { 346 } else {
347 UpdateExtensionAppIcon( 347 UpdateExtensionAppIcon(
348 enabled_extensions.GetExtensionOrAppByURL(navigation_handle->GetURL())); 348 enabled_extensions.GetExtensionOrAppByURL(navigation_handle->GetURL()));
349 } 349 }
350 350
351 if (!navigation_handle->IsSamePage()) 351 if (!navigation_handle->IsSameDocument())
352 ExtensionActionAPI::Get(context)->ClearAllValuesForTab(web_contents()); 352 ExtensionActionAPI::Get(context)->ClearAllValuesForTab(web_contents());
353 } 353 }
354 354
355 bool TabHelper::OnMessageReceived(const IPC::Message& message) { 355 bool TabHelper::OnMessageReceived(const IPC::Message& message) {
356 bool handled = true; 356 bool handled = true;
357 IPC_BEGIN_MESSAGE_MAP(TabHelper, message) 357 IPC_BEGIN_MESSAGE_MAP(TabHelper, message)
358 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_DidGetWebApplicationInfo, 358 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_DidGetWebApplicationInfo,
359 OnDidGetWebApplicationInfo) 359 OnDidGetWebApplicationInfo)
360 IPC_MESSAGE_UNHANDLED(handled = false) 360 IPC_MESSAGE_UNHANDLED(handled = false)
361 IPC_END_MESSAGE_MAP() 361 IPC_END_MESSAGE_MAP()
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 } 682 }
683 } 683 }
684 684
685 void TabHelper::SetTabId(content::RenderFrameHost* render_frame_host) { 685 void TabHelper::SetTabId(content::RenderFrameHost* render_frame_host) {
686 render_frame_host->Send( 686 render_frame_host->Send(
687 new ExtensionMsg_SetTabId(render_frame_host->GetRoutingID(), 687 new ExtensionMsg_SetTabId(render_frame_host->GetRoutingID(),
688 SessionTabHelper::IdForTab(web_contents()))); 688 SessionTabHelper::IdForTab(web_contents())));
689 } 689 }
690 690
691 } // namespace extensions 691 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_action_runner.cc ('k') | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698