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

Side by Side Diff: chrome/browser/webui/foreign_session_handler.cc

Issue 6532069: Reland "WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 5." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/webui/foreign_session_handler.h ('k') | chrome/browser/webui/generic_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/webui/foreign_session_handler.h ('k') | chrome/browser/webui/generic_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698