Index: chrome/browser/extensions/api/tabs/tabs_event_router.cc |
diff --git a/chrome/browser/extensions/api/tabs/tabs_event_router.cc b/chrome/browser/extensions/api/tabs/tabs_event_router.cc |
index 9fe585be6b03300366017e13fd27d092954921bf..b06d6b8c94b8edf3db9bcdc1f5efa36b3faa8249 100644 |
--- a/chrome/browser/extensions/api/tabs/tabs_event_router.cc |
+++ b/chrome/browser/extensions/api/tabs/tabs_event_router.cc |
@@ -29,7 +29,7 @@ |
using base::DictionaryValue; |
using base::ListValue; |
-using base::FundamentalValue; |
+using base::Value; |
using content::WebContents; |
using zoom::ZoomController; |
@@ -238,10 +238,10 @@ void TabsEventRouter::TabInsertedAt(TabStripModel* tab_strip_model, |
std::unique_ptr<base::DictionaryValue> object_args( |
new base::DictionaryValue()); |
object_args->Set(tabs_constants::kNewWindowIdKey, |
- new FundamentalValue( |
+ new Value( |
ExtensionTabUtil::GetWindowIdOfTab(contents))); |
object_args->Set(tabs_constants::kNewPositionKey, |
- new FundamentalValue(index)); |
+ new Value(index)); |
args->Append(std::move(object_args)); |
Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); |
@@ -261,10 +261,10 @@ void TabsEventRouter::TabDetachedAt(WebContents* contents, int index) { |
std::unique_ptr<base::DictionaryValue> object_args( |
new base::DictionaryValue()); |
object_args->Set(tabs_constants::kOldWindowIdKey, |
- new FundamentalValue( |
+ new Value( |
ExtensionTabUtil::GetWindowIdOfTab(contents))); |
object_args->Set(tabs_constants::kOldPositionKey, |
- new FundamentalValue(index)); |
+ new Value(index)); |
args->Append(std::move(object_args)); |
Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); |
@@ -305,7 +305,7 @@ void TabsEventRouter::ActiveTabChanged(WebContents* old_contents, |
auto object_args = base::MakeUnique<base::DictionaryValue>(); |
object_args->Set(tabs_constants::kWindowIdKey, |
- new FundamentalValue( |
+ new Value( |
ExtensionTabUtil::GetWindowIdOfTab(new_contents))); |
args->Append(object_args->CreateDeepCopy()); |
@@ -326,7 +326,7 @@ void TabsEventRouter::ActiveTabChanged(WebContents* old_contents, |
// The onActivated event takes one argument: {windowId, tabId}. |
auto on_activated_args = base::MakeUnique<base::ListValue>(); |
object_args->Set(tabs_constants::kTabIdKey, |
- new FundamentalValue(tab_id)); |
+ new Value(tab_id)); |
on_activated_args->Append(std::move(object_args)); |
DispatchEvent(profile, events::TABS_ON_ACTIVATED, |
tabs::OnActivated::kEventName, std::move(on_activated_args), |
@@ -354,7 +354,7 @@ void TabsEventRouter::TabSelectionChanged( |
select_info->Set( |
tabs_constants::kWindowIdKey, |
- new FundamentalValue( |
+ new Value( |
ExtensionTabUtil::GetWindowIdOfTabStripModel(tab_strip_model))); |
select_info->Set(tabs_constants::kTabIdsKey, all_tabs.release()); |
@@ -380,12 +380,12 @@ void TabsEventRouter::TabMoved(WebContents* contents, |
std::unique_ptr<base::DictionaryValue> object_args( |
new base::DictionaryValue()); |
object_args->Set(tabs_constants::kWindowIdKey, |
- new FundamentalValue( |
+ new Value( |
ExtensionTabUtil::GetWindowIdOfTab(contents))); |
object_args->Set(tabs_constants::kFromIndexKey, |
- new FundamentalValue(from_index)); |
+ new Value(from_index)); |
object_args->Set(tabs_constants::kToIndexKey, |
- new FundamentalValue(to_index)); |
+ new Value(to_index)); |
args->Append(std::move(object_args)); |
Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); |