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

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

Issue 1140813003: NTP Zombie Code Slayer III, The Saga Continues: Foreign Sessions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@suggestions-page
Patch Set: found more zombies Created 5 years, 7 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/ui/webui/ntp/foreign_session_handler.h" 5 #include "chrome/browser/ui/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 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/i18n/time_formatting.h" 13 #include "base/i18n/time_formatting.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/prefs/pref_service.h" 15 #include "base/prefs/pref_service.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 last_synced < base::TimeDelta::FromMinutes(1) ? 414 last_synced < base::TimeDelta::FromMinutes(1) ?
415 l10n_util::GetStringUTF16(IDS_SYNC_TIME_JUST_NOW) : 415 l10n_util::GetStringUTF16(IDS_SYNC_TIME_JUST_NOW) :
416 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED, 416 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED,
417 ui::TimeFormat::LENGTH_SHORT, last_synced)); 417 ui::TimeFormat::LENGTH_SHORT, last_synced));
418 dictionary->SetInteger("sessionId", window.window_id.id()); 418 dictionary->SetInteger("sessionId", window.window_id.id());
419 dictionary->Set("tabs", tab_values.release()); 419 dictionary->Set("tabs", tab_values.release());
420 return true; 420 return true;
421 } 421 }
422 422
423 } // namespace browser_sync 423 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698