OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/dom_ui/foreign_session_handler.h" | 5 #include "chrome/browser/webui/foreign_session_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/scoped_vector.h" | 10 #include "base/scoped_vector.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/dom_ui/new_tab_ui.h" | 14 #include "chrome/browser/dom_ui/new_tab_ui.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 return false; | 233 return false; |
234 dictionary->SetString("type", "window"); | 234 dictionary->SetString("type", "window"); |
235 dictionary->SetDouble("timestamp", | 235 dictionary->SetDouble("timestamp", |
236 static_cast<double>(window.timestamp.ToInternalValue())); | 236 static_cast<double>(window.timestamp.ToInternalValue())); |
237 dictionary->SetInteger("sessionId", window.window_id.id()); | 237 dictionary->SetInteger("sessionId", window.window_id.id()); |
238 dictionary->Set("tabs", tab_values.release()); | 238 dictionary->Set("tabs", tab_values.release()); |
239 return true; | 239 return true; |
240 } | 240 } |
241 | 241 |
242 } // namespace browser_sync | 242 } // namespace browser_sync |
OLD | NEW |